boutons.js (532B)
1 (function($) { 2 widget(tk, { 3 bouton: function(_) { 4 _.options('class', ''); 5 _.div(_, this, _('rest')); 6 7 _().square(); 8 }, 9 boutonReduire: function(_) { 10 _.options('class', ''); 11 this['class'] += ' tk bouton fermer'; 12 _.bouton(_, this,'-'); 13 }, 14 boutonFermer: function(_) { 15 _.options('class', ''); 16 this['class'] += ' tk bouton reduire'; 17 _.bouton(_, this,'×'); 18 } 19 }); 20 })(jQuery);