Changeset 1256:c4a9f61c4cd2
- Timestamp:
- 08/01/13 17:50:58 (11 years ago)
- Branch:
- ticket#1422
- Children:
- 1257:ca39ff0aceae, 1405:4767c2d94902
- Files:
-
- 4 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 -
inc/admin/lib.dc.page.php
r1188 r1256 476 476 self::jsVar('dotclear.msg.confirm_change_post_format', 477 477 __('You have unsaved changes. Switch post format will loose these changes. Proceed anyway?')). 478 self::jsVar('dotclear.msg.confirm_change_post_format_noconvert', 479 __("Warning: post format change will not convert existing content. You will need to apply new format by yourself. Proceed anyway?")). 478 480 self::jsVar('dotclear.msg.load_enhanced_uploader', 479 481 __('Loading enhanced uploader, please wait.')). -
locales/en/main.po
r1039 r1256 2154 2154 msgstr "" 2155 2155 2156 msgid "Warning: post format change will not convert existing content. You will need to apply new format by yourself. Proceed anyway?" 2157 msgstr "" 2158 2156 2159 msgid "Loading enhanced uploader, please wait." 2157 2160 msgstr "" -
locales/fr/main.po
r1250 r1256 2264 2264 msgstr "Vous avez des modifications non sauvegardées. Changer de format vous fera perdre ces modifications. Continuer ?" 2265 2265 2266 msgid "Warning: post format change will not convert existing content. You will need to apply new format by yourself. Proceed anyway?" 2267 msgstr "Attention : le changement de syntaxe ne transformera pas les balises des contenus déjà saisis. Pensez à les réadapter après cette opération. Confirmez-vous ce changement de syntaxe ?" 2268 2266 2269 msgid "Loading enhanced uploader, please wait." 2267 2270 msgstr "Chargement de l'interface avancée."
Note: See TracChangeset
for help on using the changeset viewer.