mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-20 00:59:17 +01:00
92701517d7
-> templates -> images -> css - Ajout d'un thème black en plus du thème par défaut
30 lines
919 B
JavaScript
30 lines
919 B
JavaScript
var LSformElement_boolean = new Class({
|
|
initialize: function(){
|
|
this.initialiseLSformElement_boolean();
|
|
},
|
|
|
|
initialiseLSformElement_boolean: function() {
|
|
$$('li.LSformElement_boolean').each(function(el) {
|
|
var btn = new Element('img');
|
|
btn.setProperties({
|
|
src: varLSdefault.imagePath('clear.png'),
|
|
alt: 'Reset',
|
|
title: 'Reset'
|
|
});
|
|
btn.addClass('btn');
|
|
btn.setStyle('vertical-align','top');
|
|
btn.addEvent('click',this.onClearBtnClick.bind(this,btn));
|
|
btn.injectInside(el);
|
|
}, this);
|
|
},
|
|
|
|
onClearBtnClick: function(btn) {
|
|
var li = btn.getParent();
|
|
li.getElements('input').each(function(input) {
|
|
input.checked=false;
|
|
},this);
|
|
}
|
|
});
|
|
window.addEvent(window.ie ? 'load' : 'domready', function() {
|
|
varLSformElement_boolean = new LSformElement_boolean();
|
|
});
|