Fix error deleting a favorite

This commit is contained in:
Nathan Gray 2014-05-13 21:39:23 +00:00
parent e6eda6ddc8
commit 33f264346a
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
{ {