Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions security-admin/src/main/webapp/scripts/Init.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ require.config({
'jquery-toggles': {
deps: ['jquery']
},
'jquery.cookie': {
deps: ['jquery']
},
'tag-it': {
deps: ['jquery', 'jquery-ui']
},
Expand Down Expand Up @@ -130,7 +127,6 @@ require.config({
'momentTz': '../libs/bower/moment/js/moment-timezone-with-data.min',
'daterangepicker': '../libs/other/daterangepicker/js/daterangepicker',
'bootstrap-notify': '../libs/bower/bootstrap-notify/js/bootstrap-notify',
'jquery.cookie': '../libs/other/jquery-cookie/js/jquery.cookie',
'jquery-toggles': '../libs/bower/jquery-toggles/js/toggles.min',
'tag-it': '../libs/bower/tag-it/js/tag-it',
'select2': '../libs/bower/select2/select2',
Expand Down
5 changes: 2 additions & 3 deletions security-admin/src/main/webapp/scripts/views/common/TopNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ define(function(require){
var SessionMgr = require('mgrs/SessionMgr');
var XAUtil = require('utils/XAUtils');
var App =require('App');
require('jquery.cookie');

var TopNav = Backbone.Marionette.ItemView.extend(
/** @lends TopNav */
{
Expand Down Expand Up @@ -80,8 +80,7 @@ define(function(require){
that.$('ul li').removeClass('active');
that.$('ul li:first').addClass('active');
});
$.cookie('clientTimeOffset', new Date().getTimezoneOffset());

document.cookie = "clientTimeOffset=" + new Date().getTimezoneOffset();
//To hide top menu when user don't have access to all it's sub menu's
_.each($(this.$el.find('.page-nav ul')), function(ul) {
if($(ul).find('li').length <= 0){
Expand Down