224:668b4f6a8d60
Anton Shestakov <av6@dwimlabs.net>, Fri, 12 Aug 2016 21:00:36 +0800
pipelines: only some tags/roles are currently idempotent 'common' uses command module for setting system locale, and for some reason service module (in post_tasks) thinks prosody needs enabling every time.

next change 232:0fe8137e0f76
previous change 119:206de4ff7a6c

coffee/progress.coffee

Permissions: -rw-r--r--

Other formats: Feeds:
class window.Tram.ProgressApp extends Backbone.View
initialize: ->
@listenTo(@model, 'change:progress', @updateProgress)
@render()
getStyle: (progress) =>
"width: #{ progress ? 0 }%;"
updateProgress: ->
switch @model.get('progress')
when 0
setTimeout =>
if @model.get('progress') is 0
@model.set('progress', 10)
, 600
when 100
setTimeout =>
if @model.get('progress') is 100
@model.unset('progress')
, 600
render: ->
@rivet = rivets.bind(@el, model: @model, view: this)
@
remove: ->
@rivet.unbind()
super