Changeset 30622
- Timestamp:
- Nov 27, 2014, 11:13:41 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GrumPluginClasses/js/ui.inputCheckbox.js
r16012 r30622 96 96 function (event) 97 97 { 98 privateMethods.setValue($this, $(this).attr('id'), $(this). attr('checked')?options.values.checked:options.values.unchecked,false);98 privateMethods.setValue($this, $(this).attr('id'), $(this).prop('checked')?options.values.checked:options.values.unchecked,false); 99 99 } 100 100 ); … … 202 202 var options=this.data('options'); 203 203 // return the selected tags 204 return($(this).find('#'+id). attr('checked')?options.values.checked:options.values.unchecked);204 return($(this).find('#'+id).is(':checked')?options.values.checked:options.values.unchecked); 205 205 } 206 206 else … … 214 214 function () 215 215 { 216 returned.push( {id:$(this).attr('id'), value:$(this). attr('checked')?options.values.checked:options.values.unchecked } );216 returned.push( {id:$(this).attr('id'), value:$(this).is(':checked')?options.values.checked:options.values.unchecked } ); 217 217 } 218 218 ); … … 407 407 { 408 408 case ':all': 409 properties.checkboxList. attr('checked', true);409 properties.checkboxList.prop('checked', true); 410 410 break; 411 411 case ':none': 412 properties.checkboxList. attr('checked', false);412 properties.checkboxList.prop('checked', false); 413 413 break; 414 414 case ':invert': … … 416 416 function () 417 417 { 418 $(this). attr('checked', !$(this).attr('checked'));418 $(this).prop('checked', !$(this).prop('checked')); 419 419 } 420 420 ); … … 429 429 * [{id:'id1', value:'value1'}, {id:'idN', value:'valueN'}, ..., {id:'idN', value:'valueN'}] 430 430 */ 431 properties.checkboxList. attr('checked', false);431 properties.checkboxList.prop('checked', false); 432 432 433 433 for(var i=0;i<value.length;i++) … … 435 435 if(value[i].id!=null && value[i].value!=null) 436 436 { 437 if($('#'+value[i].id).attr('value')==value[i].value) $('#'+value[i].id). attr('checked', true);437 if($('#'+value[i].id).attr('value')==value[i].value) $('#'+value[i].id).prop('checked', true); 438 438 } 439 439 else 440 440 { 441 properties.checkboxList.filter('[value='+value[i]+']'). attr('checked', true);441 properties.checkboxList.filter('[value='+value[i]+']').prop('checked', true); 442 442 } 443 443 } … … 452 452 if(properties.isCB) 453 453 { 454 properties.checkboxList. attr('checked', true);454 properties.checkboxList.prop('checked', true); 455 455 } 456 456 else … … 458 458 if(id=='') 459 459 { 460 properties.checkboxList. attr('checked', true);460 properties.checkboxList.prop('checked', true); 461 461 } 462 462 else 463 463 { 464 properties.checkboxList.filter('#'+id). attr('checked', true);464 properties.checkboxList.filter('#'+id).prop('checked', true); 465 465 } 466 466 } … … 470 470 if(properties.isCB) 471 471 { 472 properties.checkboxList. attr('checked', false);472 properties.checkboxList.prop('checked', false); 473 473 } 474 474 else … … 476 476 if(id=='') 477 477 { 478 properties.checkboxList. attr('checked', false);478 properties.checkboxList.prop('checked', false); 479 479 } 480 480 else 481 481 { 482 properties.checkboxList.filter('#'+id). attr('checked', false);482 properties.checkboxList.filter('#'+id).prop('checked', false); 483 483 } 484 484 }
Note: See TracChangeset
for help on using the changeset viewer.