Skip to content

Commit

Permalink
2 js errors fixed in the Saved Queries UI ( #89 )
Browse files Browse the repository at this point in the history
  • Loading branch information
leikind committed May 15, 2013
1 parent c5cecf1 commit 69e7052
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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("<h3>#{queryName}</h3>") 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)
Expand Down

0 comments on commit 69e7052

Please sign in to comment.