Skip to content

Commit

Permalink
white space cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cpg committed Mar 22, 2014
1 parent eb568a6 commit 3cdb4f7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions plugins/040-apps/app/assets/javascripts/apps.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ Apps =
$(document).on "ajax:beforeSend", ".install-app-in-background, .uninstall-app-in-background", ->
$(".install-button").hide()
_this.toggle_spinner this
$('.app').each ->
$('.app').each ->
$(this).find('.install-app-in-background').addClass('inactive')


$(document).on "ajax:success", ".install-app-in-background, .uninstall-app-in-background", (data, results) ->
_this.update_progress results["identifier"], results["content"]
_this.trace_progress results["identifier"]
Expand Down Expand Up @@ -64,15 +63,12 @@ Apps =
url: _this.app(finder).data("progressPath")
success: (data) ->
_this.update_progress_message finder, data["content"]

if data["app_content"]
_this.update_installed_app finder, data["app_content"]
$('.app').each ->
$('.app').each ->
$(this).find('.install-app-in-background').removeClass('inactive')

else if data["uninstalled"]
_this.update_uninstalled_app finder

else
setTimeout (-> Apps.trace_progress(finder)), 2000

Expand Down

0 comments on commit 3cdb4f7

Please sign in to comment.