Index: lams_central/web/css/main.css =================================================================== diff -u -r353fe07604639c2166ed68fbf832810959f3f3cf -r03fac710f2f2b245573637fbad274540608e1206 --- lams_central/web/css/main.css (.../main.css) (revision 353fe07604639c2166ed68fbf832810959f3f3cf) +++ lams_central/web/css/main.css (.../main.css) (revision 03fac710f2f2b245573637fbad274540608e1206) @@ -18,8 +18,8 @@ .courses-title { text-overflow: ellipsis; overflow: hidden; - font-weight: 400; - font-size: 24px; + font-weight: 300; + font-size: 23px; width: 100%; color: #ECF0F1 !important; margin-left: 0 !important; @@ -38,7 +38,7 @@ .offcanvas-hidden #page-wrapper { margin: 0 0 0 0; } -@media (min-width: 768px) { +@media (min-width: 769px) { .icon-remove { display: none !important; } @@ -186,7 +186,7 @@ cursor: pointer; position: absolute; width: 40px; - top: 20px; + top: 30px; right: 5px; } .icon-remove:hover { @@ -220,6 +220,7 @@ padding: 15px 15px 0; margin: 0; } + .offcanvas-toggle i { font-size: 26px; } Index: lams_central/web/includes/javascript/main.js =================================================================== diff -u -r4a2a1ea3d6d2248d1c4146e6a48e71259c64cee1 -r03fac710f2f2b245573637fbad274540608e1206 --- lams_central/web/includes/javascript/main.js (.../main.js) (revision 4a2a1ea3d6d2248d1c4146e6a48e71259c64cee1) +++ lams_central/web/includes/javascript/main.js (.../main.js) (revision 03fac710f2f2b245573637fbad274540608e1206) @@ -1,7 +1,5 @@ $(document).ready(function () { - //initButtons(); //TODO remove? - // open active course. in case active course is not yet chosen by user, it will be opened after tablesorter's pager receives all orgs if (activeOrgId != null) { loadOrganisation(); @@ -149,9 +147,6 @@ { dispatch : "storeLastVisitedOrganisation", orgId : activeOrgId - }, - function() { - //initButtons("org-container"); //TODO remove? } ); } @@ -164,8 +159,11 @@ stateId : stateId, orgId : activeOrgId }, - function() { - //initButtons("org-container"); //TODO remove? + function( response, status, xhr ) { + //in case of any server error - open offcanvas bar so user can select another course + if ( status == "error" ) { + $("body").removeClass("offcanvas-hidden"); + } } ); } @@ -189,45 +187,7 @@ ); } -//TODO remove? -function initButtons(containerId) { - var container = containerId ? $('#' + containerId) : document; - $(".ui-button", container).button(); - $(".split-ui-button", container).each(function(){ - var buttonContainer = $(this), - buttons = buttonContainer.children(); - - buttons.first().button() - .next().button({ - text : false, - icons : { - primary : "ui-icon-triangle-1-s" - } - }); - - buttonContainer.buttonset().next().hide().menu(); - - buttons.each(function(){ - var button = $(this); - if (!button.attr('onclick')) { - button.click(function() { - var menu = $(this).parent().next().show().position({ - my : "right top", - at : "right bottom", - of : $(this).parent() - }); - $(document).one("click", function() { - menu.hide(); - }); - return false; - }); - } - }); - }); -} - - function showMyProfileDialog() { showDialog("dialogMyProfile", { 'title' : LABELS.MY_PROFILE, Index: lams_central/web/main.jsp =================================================================== diff -u -r4a2a1ea3d6d2248d1c4146e6a48e71259c64cee1 -r03fac710f2f2b245573637fbad274540608e1206 --- lams_central/web/main.jsp (.../main.jsp) (revision 4a2a1ea3d6d2248d1c4146e6a48e71259c64cee1) +++ lams_central/web/main.jsp (.../main.jsp) (revision 03fac710f2f2b245573637fbad274540608e1206) @@ -114,12 +114,12 @@