- Timestamp:
- Feb 18, 2013, 9:58:46 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/batch_manager_global.tpl
r19121 r20823 32 32 for (var i=first; i<=last;i++) { 33 33 input = $(inputs[i]); 34 $(input). attr('checked', last_clickedstatus);34 $(input).prop('checked', last_clickedstatus); 35 35 if (last_clickedstatus) 36 36 { … … 247 247 $("select[name=selectAction]").change(function () { 248 248 $("[id^=action_]").hide(); 249 $("#action_"+$(this). attr("value")).show();249 $("#action_"+$(this).prop("value")).show(); 250 250 251 251 /* make sure the #albumSelect is on the right select box so that the */ 252 252 /* "add new album" popup fills the right select box */ 253 if ("associate" == $(this). attr("value") || "move" == $(this).attr("value")) {253 if ("associate" == $(this).prop("value") || "move" == $(this).prop("value")) { 254 254 jQuery("#albumSelect").removeAttr("id"); 255 jQuery("#action_"+$(this). attr("value")+" select").attr("id", "albumSelect");255 jQuery("#action_"+$(this).prop("value")+" select").attr("id", "albumSelect"); 256 256 } 257 257 … … 265 265 266 266 $(".wrap1 label").click(function (event) { 267 $("input[name=setSelected]"). attr('checked', false);267 $("input[name=setSelected]").prop('checked', false); 268 268 269 269 var wrap2 = $(this).children(".wrap2"); … … 283 283 284 284 $("#selectAll").click(function () { 285 $("input[name=setSelected]"). attr('checked', false);285 $("input[name=setSelected]").prop('checked', false); 286 286 selectPageThumbnails(); 287 287 checkPermitAction(); … … 294 294 var checkbox = $(this).children("input[type=checkbox]"); 295 295 296 $(checkbox). attr('checked', true);296 $(checkbox).prop('checked', true); 297 297 $(wrap2).addClass("thumbSelected"); 298 298 }); … … 300 300 301 301 $("#selectNone").click(function () { 302 $("input[name=setSelected]"). attr('checked', false);302 $("input[name=setSelected]").prop('checked', false); 303 303 304 304 $(".thumbnails label").each(function() { … … 306 306 var checkbox = $(this).children("input[type=checkbox]"); 307 307 308 $(checkbox). attr('checked', false);308 $(checkbox).prop('checked', false); 309 309 $(wrap2).removeClass("thumbSelected"); 310 310 }); … … 314 314 315 315 $("#selectInvert").click(function () { 316 $("input[name=setSelected]"). attr('checked', false);316 $("input[name=setSelected]").prop('checked', false); 317 317 318 318 $(".thumbnails label").each(function() { … … 320 320 var checkbox = $(this).children("input[type=checkbox]"); 321 321 322 $(checkbox). attr('checked', !$(checkbox).is(':checked'));322 $(checkbox).prop('checked', !$(checkbox).is(':checked')); 323 323 324 324 if ($(checkbox).is(':checked')) { … … 335 335 $("#selectSet").click(function () { 336 336 selectPageThumbnails(); 337 $("input[name=setSelected]"). attr('checked', true);337 $("input[name=setSelected]").prop('checked', true); 338 338 checkPermitAction(); 339 339 return false; … … 379 379 380 380 /* check the checkbox to declare we use this filter */ 381 $("input[type=checkbox][name="+filter+"_use]"). attr("checked", true);381 $("input[type=checkbox][name="+filter+"_use]").prop("checked", true); 382 382 383 383 /* forbid to select this filter in the addFilter list */ … … 386 386 387 387 $("#addFilter").change(function () { 388 var filter = $(this). attr("value");388 var filter = $(this).prop("value"); 389 389 filter_enable(filter); 390 $(this). attr("value", -1);390 $(this).prop("value", -1); 391 391 }); 392 392 … … 396 396 397 397 /* uncheck the checkbox to declare we do not use this filter */ 398 $("input[name="+filter+"_use]"). removeAttr("checked");398 $("input[name="+filter+"_use]").prop("checked", false); 399 399 400 400 /* give the possibility to show it again */ … … 434 434 435 435 derivatives.elements = []; 436 if (jQuery('input[name="setSelected"]'). attr('checked'))436 if (jQuery('input[name="setSelected"]').is(':checked')) 437 437 derivatives.elements = all_elements; 438 438 else 439 439 jQuery('.thumbnails input[type=checkbox]').each(function() { 440 if (jQuery(this). attr('checked')) {440 if (jQuery(this).is(':checked')) { 441 441 derivatives.elements.push(jQuery(this).val()); 442 442 } … … 456 456 var params = {max_urls: 100000, ids: ids, types: []}; 457 457 jQuery("#action_generate_derivatives input").each( function(i, t) { 458 if ($(t). attr("checked"))458 if ($(t).is(":checked")) 459 459 params.types.push( t.value ); 460 460 } ); … … 939 939 {footer_script} 940 940 function selectGenerateDerivAll() {ldelim} 941 $("#action_generate_derivatives input[type=checkbox]"). attr("checked", true);941 $("#action_generate_derivatives input[type=checkbox]").prop("checked", true); 942 942 } 943 943 function selectGenerateDerivNone() {ldelim} 944 $("#action_generate_derivatives input[type=checkbox]"). attr("checked", false);944 $("#action_generate_derivatives input[type=checkbox]").prop("checked", false); 945 945 } 946 946 {/footer_script} … … 957 957 {footer_script} 958 958 function selectDelDerivAll() {ldelim} 959 $("#action_delete_derivatives input[type=checkbox]"). attr("checked", true);959 $("#action_delete_derivatives input[type=checkbox]").prop("checked", true); 960 960 } 961 961 function selectDelDerivNone() {ldelim} 962 $("#action_delete_derivatives input[type=checkbox]"). attr("checked", false);962 $("#action_delete_derivatives input[type=checkbox]").prop("checked", false); 963 963 } 964 964 {/footer_script}
Note: See TracChangeset
for help on using the changeset viewer.