Changeset 2566:9bf417837888 for plugins/themeEditor/script.js
- Timestamp:
- 11/17/13 20:25:53 (12 years ago)
- Branch:
- 2.6
- Children:
- 2567:6c11245cbf04, 2568:61c67a7d17fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/themeEditor/script.js
r948 r2566 3 3 $('#file-form input[name="write"]').click(function() { 4 4 var f = this.form; 5 5 6 6 var data = { 7 7 file_content: (!dotclear.colorsyntax ? $(f).find('#file_content').get(0).value : editor.getValue()), … … 9 9 write: 1 10 10 }; 11 11 12 12 if (msg == false) { 13 13 msg = $('<p style="font-weight:bold; color:red;"></p>'); 14 14 $('#file_content').parent().after(msg); 15 15 } 16 16 17 17 msg.text(dotclear.msg.saving_document); 18 18 19 19 $.post(document.location.href,data,function(res,status) { 20 20 var err = $(res).find('div.error li:first'); … … 28 28 } 29 29 }); 30 30 31 31 return false; 32 32 });
Note: See TracChangeset
for help on using the changeset viewer.