Shifted nanoscroller to vendor.

This commit is contained in:
Aditya Raisinghani 2014-04-04 00:13:09 +05:30
parent 44979c074d
commit 1c3117836f
4 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -73,7 +73,7 @@ exports.config =
order:
before: [
'app/styles/bootstrap.scss'
'app/styles/nanoscroller.scss'
'vendor/styles/nanoscroller.scss'
]
templates:
defaultExtension: 'jade'