Replace .attr() with .prop() as per jQuery 1.6.1. Also fixes couple places where the JS wasn't working because attr('some', '') does not remove the HTML property now, see #17311

git-svn-id: https://develop.svn.wordpress.org/trunk@18027 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-05-25 01:04:12 +00:00
parent 09424ff8b3
commit 3a20d6aa17
29 changed files with 80 additions and 80 deletions
+3 -3
View File
@@ -61,7 +61,7 @@ setCommentsList = function() {
el = $('#comment-' + id);
note = $('#' + action + '-undo-holder').html();
el.find('.check-column :checkbox').attr('checked', ''); // Uncheck the row so as not to be affected by Bulk Edits.
el.find('.check-column :checkbox').prop('checked', false); // Uncheck the row so as not to be affected by Bulk Edits.
if ( el.siblings('#replyrow').length && commentReply.cid == id )
commentReply.close();
@@ -569,14 +569,14 @@ $(document).ready(function(){
toggle_all = function() {
toggleWithKeyboard = true;
$('input:checkbox', '#cb').click().attr('checked', '');
$('input:checkbox', '#cb').click().prop('checked', false);
toggleWithKeyboard = false;
};
make_bulk = function(value) {
return function() {
var scope = $('select[name="action"]');
$('option[value="' + value + '"]', scope).attr('selected', 'selected');
$('option[value="' + value + '"]', scope).prop('selected', true);
$('#doaction').click();
}
};