mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Shifted nanoscroller to vendor.
This commit is contained in:
parent
44979c074d
commit
1c3117836f
4 changed files with 4 additions and 4 deletions
|
@ -114,6 +114,9 @@ module.exports = class CocoView extends Backbone.View
|
|||
$('#modal-wrapper .modal').modal(modalOptions).on 'hidden.bs.modal', @modalClosed
|
||||
window.currentModal = modalView
|
||||
@getRootView().stopListeningToShortcuts(true)
|
||||
setTimeout ->
|
||||
$('.modal').nanoScroller({contentClass:'modal-dialog'})
|
||||
, 1000
|
||||
|
||||
modalClosed: =>
|
||||
visibleModal.willDisappear() if visibleModal
|
||||
|
|
|
@ -37,9 +37,6 @@ module.exports = class ModalView extends CocoView
|
|||
# This makes sure if you press enter right after opening the players guide,
|
||||
# it doesn't just reopen the modal.
|
||||
$(document.activeElement).blur()
|
||||
setTimeout ->
|
||||
$('.modal').nanoScroller({contentClass:'modal-dialog'})
|
||||
, 1000
|
||||
|
||||
showLoading: ($el) ->
|
||||
$el = @$el.find('.modal-body') unless $el
|
||||
|
|
|
@ -73,7 +73,7 @@ exports.config =
|
|||
order:
|
||||
before: [
|
||||
'app/styles/bootstrap.scss'
|
||||
'app/styles/nanoscroller.scss'
|
||||
'vendor/styles/nanoscroller.scss'
|
||||
]
|
||||
templates:
|
||||
defaultExtension: 'jade'
|
||||
|
|
Loading…
Reference in a new issue