Changeset 2556:5567b0e7d451
- Timestamp:
- 11/15/13 15:05:55 (10 years ago)
- Branch:
- 2.6
- Children:
- 2557:70bc5ba039a0, 2558:31f1ca134823
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_post.js
r2531 r2556 68 68 $(this).val(last_post_format); 69 69 } 70 70 71 71 $('.format_control > *').addClass('hide'); 72 72 $('.format_control:not(.control_no_'+$(this).val()+') > *').removeClass('hide'); … … 80 80 if (document.getElementById('comment_content')) { 81 81 var commentTb = new jsToolBar(document.getElementById('comment_content')); 82 commentTb.draw('xhtml'); 82 83 } 83 84 … … 106 107 a.className = 'button '; 107 108 $(a).click(function() { 108 109 109 110 excerpt_content = $('#post_excerpt').css('display') != 'none' ? $('#post_excerpt').val() : $('#excerpt-area iframe').contents().find('body').html(); 110 111 post_content = $('#post_content').css('display') != 'none' ? $('#post_content').val() : $('#content-area iframe').contents().find('body').html(); 111 112 112 113 var params = { 113 114 xd_check: dotclear.nonce, … … 124 125 return false; 125 126 } 126 127 127 128 $('.message, .success, .error, .warning-msg').remove(); 128 129 … … 130 131 var p = document.createElement('p'); 131 132 p.id = 'markup-validator'; 132 133 133 134 $(p).addClass('success'); 134 135 $(p).text(dotclear.msg.xhtml_valid); … … 140 141 var div = document.createElement('div'); 141 142 div.id = 'markup-validator'; 142 143 143 144 $(div).addClass('error'); 144 145 $(div).html('<p><strong>' + dotclear.msg.xhtml_not_valid + '</strong></p>' + $(data).find('errors').text()); … … 163 164 164 165 a.appendChild(document.createTextNode(dotclear.msg.xhtml_validator)); 165 166 166 167 $('.format_control > *').addClass('hide'); 167 168 $('.format_control:not(.control_no_'+last_post_format+') > *').removeClass('hide');
Note: See TracChangeset
for help on using the changeset viewer.