Dotclear

Changeset 2905:a7a0df6048be


Ignore:
Timestamp:
01/06/15 10:15:05 (9 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
2.7
Children:
2906:6e7e433ef6d3, 2907:d5da0414c363
Message:

Do not prompt for unsaved changes if everything is saved
Closes #2025

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/themeEditor/script.js

    r2902 r2905  
    22     // Cope with saving 
    33     var msg = false; 
    4      $('#file-form input[name="write"]').click(function() { 
     4     $('#file-form input[name="write"]').click(function(e) { 
    55          var f = this.form; 
    66 
     
    2727                    $('#file-chooser').empty(); 
    2828                    $(res).find('#file-chooser').children().appendTo('#file-chooser'); 
    29                     confirmClosePage.getCurrentForms(); 
    3029 
     30                    if ($.isFunction(confirmClosePage['getCurrentForms'])) { 
     31                         confirmClosePage.forms = []; 
     32                         confirmClosePage.getCurrentForms(); 
     33                    } 
    3134               } 
    3235          }); 
    3336 
    34           return false; 
     37          e.preventDefault(); 
    3538     }); 
    3639 
Note: See TracChangeset for help on using the changeset viewer.

Sites map