fixed javascript error "Can not set readonly property" in Safari, caused by wrong context

This commit is contained in:
Ralf Becker 2014-02-20 13:29:35 +00:00
parent 3cbf1d24fb
commit b2c275436a
2 changed files with 14 additions and 14 deletions

View File

@ -83,7 +83,7 @@ var et2_dropdown_button = et2_inputWidget.extend(
},
// No such thing as a required button
"required": {
"ignore": true,
"ignore": true
}
},
@ -130,7 +130,7 @@ var et2_dropdown_button = et2_inputWidget.extend(
.hide()
.menu({
select: function(event,ui) {
self.onselect(event,ui.item);
self.onselect.call(self,event,ui.item);
}
});

View File

@ -301,7 +301,7 @@ var et2_favorites = et2_dropdown_button.extend([et2_INextmatchHeader],
set_value: function(filter_name, parent) {
if(parent)
{
return this._super.apply(filter_name);
return this._super.call(this, filter_name);
}
if(filter_name == 'add') return false;