Changeset 1256:c4a9f61c4cd2 for admin/js
- Timestamp:
- 08/01/13 17:50:58 (12 years ago)
- Branch:
- ticket#1422
- Children:
- 1257:ca39ff0aceae, 1405:4767c2d94902
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_post.js
r1140 r1256 79 79 // Get document format and prepare toolbars 80 80 var formatField = $('#post_format').get(0); 81 var last_post_format = $(formatField).val(); 81 82 $(formatField).change(function() { 82 excerptTb.switchMode(this.value); 83 contentTb.switchMode(this.value); 83 // Confirm post format change 84 if(window.confirm(dotclear.msg.confirm_change_post_format_noconvert)){ 85 excerptTb.switchMode(this.value); 86 contentTb.switchMode(this.value); 87 last_post_format = $(this).val(); 88 }else{ 89 // Restore last format if change cancelled 90 $(this).val(last_post_format); 91 } 84 92 }); 85 93
Note: See TracChangeset
for help on using the changeset viewer.