Changeset 3880:e6d1f6d9d7df for plugins/themeEditor
- Timestamp:
- 09/18/18 20:22:10 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/themeEditor/js/script.js
r3709 r3880 4 4 $(function() { 5 5 // Cope with saving 6 varmsg = false;6 let msg = false; 7 7 $('#file-form input[name="write"]').click(function(e) { 8 varf = this.form;8 const f = this.form; 9 9 10 vardata = {10 const data = { 11 11 file_content: (!dotclear.colorsyntax ? $(f).find('#file_content').get(0).value : editor.getValue()), 12 12 xd_check: $(f).find('input[name="xd_check"]').get(0).value, … … 22 22 23 23 $.post(document.location.href, data, function(res) { 24 varerr = $(res).find('div.error li:first');24 const err = $(res).find('div.error li:first'); 25 25 if (err.length > 0) { 26 26 msg.text(dotclear.msg.error_occurred + ' ' + err.text());
Note: See TracChangeset
for help on using the changeset viewer.