From 69e7052ea0ad300ac31d463d7189a5cc8f896410 Mon Sep 17 00:00:00 2001 From: Yuri Leikind Date: Wed, 15 May 2013 15:00:57 +0200 Subject: [PATCH] 2 js errors fixed in the Saved Queries UI ( https://github.com/leikind/wice_grid/issues/89 ) --- .../assets/javascripts/wice_grid_saved_queries_init.js.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/assets/javascripts/wice_grid_saved_queries_init.js.coffee b/vendor/assets/javascripts/wice_grid_saved_queries_init.js.coffee index fd3eed8f..f30e5880 100644 --- a/vendor/assets/javascripts/wice_grid_saved_queries_init.js.coffee +++ b/vendor/assets/javascripts/wice_grid_saved_queries_init.js.coffee @@ -88,13 +88,13 @@ onChangeToQueryList = (data, gridName, queryName, inputField) -> queryListId = "##{gridName}_query_list" inputField.val('') if queryName if errorMessages = data['error_messages'] - $(notificationMessagesDomId).text(errorExplanation) + $(notificationMessagesDomId).text(errorMessages) else if notificationMessages = data['notification_messages'] $(notificationMessagesDomId).text(notificationMessages) $(gridTitleId).html("

#{queryName}

") if queryName $(queryListId).replaceWith(data['query_list']) - $(queryListId).effect('highlight') + $(queryListId).effect('highlight') if jQuery.ui $(".wice-grid-delete-query", $(queryListId)).click (event) -> deleteQuery(this, event)