Removed unnecessary events in settings
This commit is contained in:
1 parent
577c87ff2b
commit
9353454229
1 file changed
+4
-13
@@ -104,9 +104,7 @@ Page.Settings = new Class({
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
new Form.Check(self.advanced_toggle, {
|
new Form.Check(self.advanced_toggle)
|
||||||
'onChange': self.showAdvanced.bind(self)
|
|
||||||
})
|
|
||||||
|
|
||||||
// Create tabs
|
// Create tabs
|
||||||
Object.each(self.tabs, function(tab, tab_name){
|
Object.each(self.tabs, function(tab, tab_name){
|
||||||
@@ -397,9 +395,7 @@ Option.Checkbox = new Class({
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
new Form.Check(self.input, {
|
new Form.Check(self.input);
|
||||||
'onChange': self.changed.bind(self)
|
|
||||||
});
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -435,16 +431,11 @@ Option.Enabler = new Class({
|
|||||||
self.input = new Element('input.inlay', {
|
self.input = new Element('input.inlay', {
|
||||||
'type': 'checkbox',
|
'type': 'checkbox',
|
||||||
'checked': self.getSettingValue(),
|
'checked': self.getSettingValue(),
|
||||||
'id': 'r-'+randomString(),
|
'id': 'r-'+randomString()
|
||||||
'events': {
|
|
||||||
'change': self.checkState.bind(self)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
new Form.Check(self.input, {
|
new Form.Check(self.input);
|
||||||
'onChange': self.changed.bind(self)
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
changed: function(){
|
changed: function(){
|
||||||
|
|||||||
Reference in new issue
Block a user