app/assets/javascripts/angle/app.init.js
/*!
*
* Angle - Bootstrap Admin App + Ruby on Rails
*
* Author: @themicon_co
* Website: http://themicon.co
* License: http://support.wrapbootstrap.com/knowledge_base/topics/usage-licenses
*
*/
(function(window, document, $, undefined){
if (typeof $ === 'undefined') { throw new Error('This application\'s JavaScript requires jQuery'); }
$(function(){
// Restore body classes
// -----------------------------------
var $body = $('body');
new StateToggler().restoreState( $body );
// enable settings toggle after restore
$('#chk-fixed').prop('checked', $body.hasClass('layout-fixed') );
$('#chk-collapsed').prop('checked', $body.hasClass('aside-collapsed') );
$('#chk-boxed').prop('checked', $body.hasClass('layout-boxed') );
$('#chk-float').prop('checked', $body.hasClass('aside-float') );
$('#chk-hover').prop('checked', $body.hasClass('aside-hover') );
// When ready display the offsidebar
$('.offsidebar.hide').removeClass('hide');
}); // doc ready
})(window, document, window.jQuery);