diff --git a/app/views/kinds/SearchView.coffee b/app/views/kinds/SearchView.coffee index a4aa0a468..f49eb4994 100644 --- a/app/views/kinds/SearchView.coffee +++ b/app/views/kinds/SearchView.coffee @@ -5,7 +5,7 @@ app = require('application') class SearchCollection extends Backbone.Collection initialize: (modelURL, @model, @term) -> - @url = "#{modelURL}/search?project=yes" + @url = "#{modelURL}/search?project=true" @url += "&term=#{term}" if @term module.exports = class ThangTypeHomeView extends View @@ -110,7 +110,7 @@ module.exports = class ThangTypeHomeView extends View that = @ res.success -> that.model = model - modal.modal('hide') + modal.modal('hide') onModalHidden: -> # Can only redirect after the modal hidden event has triggered diff --git a/app/views/play/level/tome/problem_alert_view.coffee b/app/views/play/level/tome/problem_alert_view.coffee index 59dd6ccc8..2d77ac523 100644 --- a/app/views/play/level/tome/problem_alert_view.coffee +++ b/app/views/play/level/tome/problem_alert_view.coffee @@ -24,7 +24,8 @@ module.exports = class ProblemAlertView extends View afterRender: -> super() - @$el.addClass('alert').addClass("alert-#{@problem.aetherProblem.level}") + @$el.addClass('alert').addClass("alert-#{@problem.aetherProblem.level}").hide().fadeIn('slow') + Backbone.Mediator.publish 'play-sound', trigger: 'error_appear', volume: 1.0 onRemoveClicked: -> @$el.remove()