Squashing and merging ... * Each assigment should have the options to have its own set of hints #278 * Updating lessons due to changes from #278 * Enable i18n client side #312 * IDOR move hints to assignment and enable i18n #312
27 lines
681 B
JavaScript
27 lines
681 B
JavaScript
//
|
|
//UserAndInfoView
|
|
define(['jquery',
|
|
'underscore',
|
|
'backbone'],
|
|
function($,
|
|
_,
|
|
Backbone) {
|
|
return Backbone.View.extend({
|
|
el:'#toggle-menu',
|
|
|
|
events: {
|
|
"click": "toggleMenu"
|
|
},
|
|
|
|
toggleMenu: function(e) {
|
|
//left
|
|
if (!$('.sidebarRight').hasClass('.sidebar-toggle-right')) {
|
|
$('.sidebarRight').removeClass('sidebar-toggle-right');
|
|
$('.main-content-wrapper').removeClass('main-content-toggle-right');
|
|
}
|
|
$('.sidebar').toggleClass('sidebar-toggle');
|
|
$('.main-content-wrapper').toggleClass('main-content-toggle-left');
|
|
e.stopImmediatePropagation();
|
|
}
|
|
});
|
|
}); |