mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 14:41:50 +01:00
Fix error deleting a favorite
This commit is contained in:
parent
e6eda6ddc8
commit
33f264346a
@ -180,7 +180,7 @@ var et2_favorites = et2_dropdown_button.extend([et2_INextmatchHeader],
|
|||||||
// Add a listener on the delete to remove
|
// Add a listener on the delete to remove
|
||||||
this.menu.on("click","div.ui-icon-trash", app[self.options.app], function() {
|
this.menu.on("click","div.ui-icon-trash", app[self.options.app], function() {
|
||||||
// App instance might not be ready yet, so don't bind directly
|
// App instance might not be ready yet, so don't bind directly
|
||||||
app[self.options.app].delete_favorite.apply(app[self.options.app],arguments);
|
app[self.options.app].delete_favorite.apply(this,arguments);
|
||||||
})
|
})
|
||||||
// Wrap and unwrap because jQueryUI styles use a parent, and we don't want to change the state of the menu item
|
// Wrap and unwrap because jQueryUI styles use a parent, and we don't want to change the state of the menu item
|
||||||
// Wrap in a span instead of a div because div gets a border
|
// Wrap in a span instead of a div because div gets a border
|
||||||
|
@ -647,7 +647,7 @@ var AppJS = Class.extend(
|
|||||||
// Remove line from list
|
// Remove line from list
|
||||||
line.slideUp("slow", function() { });
|
line.slideUp("slow", function() { });
|
||||||
|
|
||||||
trash._refresh_fav_nm();
|
app._refresh_fav_nm();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user