Create slider after app is initialized
This commit is contained in:
parent
1323d2fca5
commit
69f06493fa
|
@ -42,7 +42,6 @@ unless window.TravisApplication
|
||||||
Travis.SshKey.url = "/settings/ssh_key"
|
Travis.SshKey.url = "/settings/ssh_key"
|
||||||
Travis.SshKey.adapter = Travis.SshKeyAdapter.create()
|
Travis.SshKey.adapter = Travis.SshKeyAdapter.create()
|
||||||
|
|
||||||
@slider = new Travis.Slider()
|
|
||||||
@pusher = new Travis.Pusher(key: Travis.config.pusher_key, host: Travis.config.pusher_host) if Travis.config.pusher_key
|
@pusher = new Travis.Pusher(key: Travis.config.pusher_key, host: Travis.config.pusher_host) if Travis.config.pusher_key
|
||||||
@tailing = new Travis.Tailing($(window), '#tail', '#log')
|
@tailing = new Travis.Tailing($(window), '#tail', '#log')
|
||||||
@toTop = new Travis.ToTop($(window), '.to-top', '#log-container')
|
@toTop = new Travis.ToTop($(window), '.to-top', '#log-container')
|
||||||
|
@ -149,6 +148,7 @@ unless window.TravisApplication
|
||||||
Em.run.later (-> element.remove()), 10
|
Em.run.later (-> element.remove()), 10
|
||||||
|
|
||||||
ready: ->
|
ready: ->
|
||||||
|
@slider = new Travis.Slider(@storage)
|
||||||
location.href = location.href.replace('#!/', '') if location.hash.slice(0, 2) == '#!'
|
location.href = location.href.replace('#!/', '') if location.hash.slice(0, 2) == '#!'
|
||||||
|
|
||||||
currentDate: ->
|
currentDate: ->
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
@Travis.Slider = ->
|
@Travis.Slider = (storage) ->
|
||||||
@minimize() if Travis.storage.getItem('travis.maximized') == 'true'
|
@minimize() if storage.getItem('travis.maximized') == 'true'
|
||||||
this
|
this
|
||||||
|
|
||||||
$.extend Travis.Slider.prototype,
|
$.extend Travis.Slider.prototype,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user