Changeset 1813:3ba988cd501f for admin/js
- Timestamp:
- 09/01/13 13:18:28 (12 years ago)
- Branch:
- Ticket #1539
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_post.js
r1812 r1813 132 132 a.className = 'button '; 133 133 $(a).click(function() { 134 135 excerpt_content = $('#post_excerpt').css('display') != 'none' ? $('#post_excerpt').val() : $('#excerpt-area iframe').contents().find('body').html(); 136 post_content = $('#post_content').css('display') != 'none' ? $('#post_content').val() : $('#content-area iframe').contents().find('body').html(); 137 134 138 var params = { 135 139 xd_check: dotclear.nonce, 136 140 f: 'validatePostMarkup', 137 excerpt: $('#post_excerpt').text(),138 content: $('#post_content').text(),141 excerpt: excerpt_content, 142 content: post_content, 139 143 format: $('#post_format').get(0).value, 140 144 lang: $('#post_lang').get(0).value … … 157 161 $(p).addClass('message'); 158 162 $(p).text(dotclear.msg.xhtml_valid); 159 $( v).append(p);163 $('#entry-content h3').after(p); 160 164 $(p).backgroundFade({sColor:'#666666',eColor:'#ffcc00',steps:50},function() { 161 165 $(this).backgroundFade({sColor:'#ffcc00',eColor:'#666666'}); … … 171 175 $(div).addClass('error'); 172 176 $(div).html('<p><strong>' + dotclear.msg.xhtml_not_valid + '</strong></p>' + $(data).find('errors').text()); 173 $( v).append(div);177 $('#entry-content h3').after(div); 174 178 $(div).backgroundFade({sColor:'#ffffff',eColor:'#FFBABA',steps:50},function() { 175 179 $(this).backgroundFade({sColor:'#ffbaba',eColor:'#ffffff'});
Note: See TracChangeset
for help on using the changeset viewer.