Guest User

tzCheckbox Change

a guest
Feb 15th, 2012
314
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Creating the new checkbox markup:
  2. var checkBox = $('<span>',{
  3.     "class" : "tzCheckBox "+(this.checked?'checked':''),
  4.     "html": "<span class='tzCBContent'>"+labels[this.checked?0:1]+
  5.     "</span><span class='tzCBPart'></span>"
  6. });
  7.  
  8.  
  9. TO THIS:
  10.  
  11. // Creating the new checkbox markup:
  12. var checkBox = $('<span>',{
  13.     "class" :  $(this).attr('class') + " tzCheckBox "+(this.checked?'checked':''),
  14.     "html": "<span class='tzCBContent'>"+labels[this.checked?0:1]+
  15.     "</span><span class='tzCBPart'></span>"
  16. });
RAW Paste Data