From 33f264346a50ca810f64b2275e5c7960247b320f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 13 May 2014 21:39:23 +0000 Subject: [PATCH] Fix error deleting a favorite --- etemplate/js/et2_widget_favorites.js | 2 +- phpgwapi/js/jsapi/app_base.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_widget_favorites.js b/etemplate/js/et2_widget_favorites.js index 0f6b99d07b..c501cbdc50 100644 --- a/etemplate/js/et2_widget_favorites.js +++ b/etemplate/js/et2_widget_favorites.js @@ -180,7 +180,7 @@ var et2_favorites = et2_dropdown_button.extend([et2_INextmatchHeader], // Add a listener on the delete to remove 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[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 in a span instead of a div because div gets a border diff --git a/phpgwapi/js/jsapi/app_base.js b/phpgwapi/js/jsapi/app_base.js index 13177a284f..431e34a5d7 100644 --- a/phpgwapi/js/jsapi/app_base.js +++ b/phpgwapi/js/jsapi/app_base.js @@ -647,7 +647,7 @@ var AppJS = Class.extend( // Remove line from list line.slideUp("slow", function() { }); - trash._refresh_fav_nm(); + app._refresh_fav_nm(); } else {