Removed unnecessary events in settings

This commit is contained in:
Ruud committed 2011-09-06 12:15:23 +02:00
1 parent 577c87ff2b
commit 9353454229
1 file changed
+4 -13
+4 -13
View File
@@ -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(){