mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 19:06:59 -05:00
Merge branch 'lbox-prog' of git://github.com/Shrihari/codecombat into Shrihari-lbox-prog
This commit is contained in:
commit
2677751dc5
1 changed files with 8 additions and 2 deletions
|
@ -57,8 +57,14 @@ module.exports = class PlaybackView extends View
|
|||
@$el.find('#music-button').toggleClass('music-on', me.get('music'))
|
||||
|
||||
onSetLetterbox: (e) ->
|
||||
buttons = @$el.find '#play-button, .scrubber-handle'
|
||||
buttons.css 'visibility', if e.on then 'hidden' else 'visible'
|
||||
if e.on
|
||||
$('.scrubber .progress', @$el).slider('disable', true)
|
||||
$('#play-button', @$el).addClass('disabled')
|
||||
$('.scrubber-handle', @$el).css('visibility', 'hidden')
|
||||
else
|
||||
$('.scrubber .progress', @$el).slider('enable', true)
|
||||
$('#play-button', @$el).removeClass('disabled')
|
||||
$('.scrubber-handle', @$el).css('visibility', 'visible')
|
||||
@disabled = e.on
|
||||
|
||||
onWindowResize: (s...) =>
|
||||
|
|
Loading…
Reference in a new issue