wise-web-client
Version:
Based on Spine MVC framework
39 lines (30 loc) • 1.08 kB
JavaScript
// MobileInit.js
// -------------
// Include Mobile Specific JavaScript files here (or inside of your Mobile router)
// load pnotify to jquery
require(['jquery', 'backbone', 'routers/MobileRouter', 'pnotify', 'jquery.cookie', 'jquery-mobile', 'backbone.validation'],
function($, Backbone, MobileRouter) {
//config pnotify
$.pnotify.defaults.styling = 'bootstrap3';
$.pnotify.defaults.history = false;
$.pnotify.defaults.stack = {
'dir1': 'down',
'dir2': 'right',
'push': 'top',
'spacing1': 0,
'spacing2': 0,
'context': $('#notice-container')
};
$.pnotify.defaults.addclass = 'stack-bar-top';
$.pnotify.defaults.width = '100%';
$.pnotify.defaults.min_height = '25px';
$.pnotify.defaults.delay = 5000;
$.cookie.json = true;
// Prevents all anchor click handling
$.mobile.linkBindingEnabled = false;
// Disabling this will prevent jQuery Mobile from handling hash changes
$.mobile.hashListeningEnabled = false;
// Instantiates a new Mobile Router instance
new MobileRouter();
}
);