includes/clientside/static/editor.js
changeset 504 bc8e0e9ee01d
parent 476 f26a69c40431
child 541 acb7e23b6ffa
equal deleted inserted replaced
503:f205f4b201ed 504:bc8e0e9ee01d
   273     var toolbar = '';
   273     var toolbar = '';
   274     var head = new templateParser(response.toolbar_templates.toolbar_start);
   274     var head = new templateParser(response.toolbar_templates.toolbar_start);
   275     var button = new templateParser(response.toolbar_templates.toolbar_button);
   275     var button = new templateParser(response.toolbar_templates.toolbar_button);
   276     var tail = new templateParser(response.toolbar_templates.toolbar_end);
   276     var tail = new templateParser(response.toolbar_templates.toolbar_end);
   277     
   277     
       
   278     toolbar += head.run();
       
   279     
   278     button.assign_bool({
   280     button.assign_bool({
   279         show_title: true
   281         show_title: true
   280       });
   282       });
   281     
   283     
   282     // Button: close
   284     // Button: close
   284         TITLE: $lang.get('editor_btn_closeviewer'),
   286         TITLE: $lang.get('editor_btn_closeviewer'),
   285         IMAGE: editor_img_path + '/discard.gif',
   287         IMAGE: editor_img_path + '/discard.gif',
   286         FLAGS: 'href="#" onclick="ajaxReset(true); return false;"'
   288         FLAGS: 'href="#" onclick="ajaxReset(true); return false;"'
   287       });
   289       });
   288     toolbar += button.run();
   290     toolbar += button.run();
       
   291     toolbar += tail.run();
   289   }
   292   }
   290   else
   293   else
   291   {
   294   {
   292     // First row: edit summary
   295     // First row: edit summary
   293     var tr1 = document.createElement('tr');
   296     var tr1 = document.createElement('tr');