1 // NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE:
3 // This file is generated automatically by the script
4 // "scripts/generate_client_js_actions.pl". See the documentation for
5 // SL/ClientJS.pm for instructions.
7 function display_flash(type, message) {
8 $('#flash_' + type + '_content').text(message);
9 $('#flash_' + type).show();
12 function eval_json_result(data) {
17 return display_flash('error', data.error);
19 $('#flash_error').hide();
20 $('#flash_error_content').empty();
22 if ((data.js || '') != '')
25 if (data.eval_actions)
26 $(data.eval_actions).each(function(idx, action) {
27 // console.log("ACTION " + action[0] + " ON " + action[1]);
32 // console.log("current_content_type " + $('#current_content_type').val() + ' ID ' + $('#current_content_id').val());