Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: common-script.js
(function ($) { $(document).ready(function () { /*==Left Navigation Accordion ==*/ if ($.fn.dcAccordion) { $('#nav-accordion').dcAccordion({ eventType: 'click', autoClose: true, saveState: true, disableLink: true, speed: 'slow', showCount: false, autoExpand: true, classExpand: 'dcjq-current-parent' }); } /*==Slim Scroll ==*/ if ($.fn.slimScroll) { $('.event-list').slimscroll({ height: '305px', wheelStep: 20 }); $('.conversation-list').slimscroll({ height: '360px', wheelStep: 35 }); $('.to-do-list').slimscroll({ height: '300px', wheelStep: 35 }); } /*==Nice Scroll ==*/ if ($.fn.niceScroll) { $(".leftside-navigation").niceScroll({ cursorcolor: "#959595", cursorborder: "0px solid #fff", cursorborderradius: "0px", cursorwidth: "3px" }); if($(window).width() < 750) { $('#sidebar').addClass('hide-left-bar'); $('#main-content').addClass('merge-left'); } $(".leftside-navigation").getNiceScroll().resize(); if ($('#sidebar').hasClass('hide-left-bar')) { $(".leftside-navigation").getNiceScroll().hide(); } $(".leftside-navigation").getNiceScroll().show(); $(".right-stat-bar").niceScroll({ cursorcolor: "#959595", cursorborder: "0px solid #fff", cursorborderradius: "0px", cursorwidth: "2px" }); } /*==Collapsible==*/ $('.widget-head').click(function (e) { var widgetElem = $(this).children('.widget-collapse').children('i'); $(this) .next('.widget-container') .slideToggle('slow'); if ($(widgetElem).hasClass('ico-minus')) { $(widgetElem).removeClass('ico-minus'); $(widgetElem).addClass('ico-plus'); } else { $(widgetElem).removeClass('ico-plus'); $(widgetElem).addClass('ico-minus'); } e.preventDefault(); }); /*==Sidebar Toggle==*/ $(".leftside-navigation .sub-menu > a").click(function () { var o = ($(this).offset()); var diff = 80 - o.top; if (diff > 0) $(".leftside-navigation").scrollTo("-=" + Math.abs(diff), 500); else $(".leftside-navigation").scrollTo("+=" + Math.abs(diff), 500); }); $('.sidebar-toggle-box').click(function (e) { $(".leftside-navigation").niceScroll({ cursorcolor: "#959595", cursorborder: "0px solid #fff", cursorborderradius: "0px", cursorwidth: "3px" }); $('#sidebar').toggleClass('hide-left-bar'); if($(window).width() < 750) { $('#sidebar').toggleClass('show-left-bar'); $('#main-content').toggleClass('merge-right'); $('#sidebar').toggleClass('hidden-xs'); } if ($('#sidebar').hasClass('hide-left-bar')) { $(".leftside-navigation").getNiceScroll().hide(); } $(".leftside-navigation").getNiceScroll().show(); $('#main-content').toggleClass('merge-left'); e.stopPropagation(); }); /*== to do list ==*/ $('.task-finish').click(function() { if($(this).is(':checked')) { $(this).parent().parent().addClass('selected'); } else { $(this).parent().parent().removeClass('selected'); } }); /*==Delete to do list==*/ $('.task-del').click(function() { var activeList = $(this).parent().parent(); activeList.addClass('removed'); setTimeout(function() { activeList.remove(); }, 1000); return false; }); /*==Porlets Actions==*/ $('.minimize').click(function(e){ var h = $(this).parents(".header"); var c = h.next('.porlets-content'); var p = h.parent(); c.slideToggle(); p.toggleClass('closed'); e.preventDefault(); }); $('.refresh').click(function(e){ var h = $(this).parents(".header"); var p = h.parent(); var loading = $('<div class="loading"><i class="fa fa-refresh fa-spin"></i></div>'); loading.appendTo(p); loading.fadeIn(); setTimeout(function() { loading.fadeOut(); }, 1000); e.preventDefault(); }); $('.close-down').click(function(e){ var h = $(this).parents(".header"); var p = h.parent(); p.fadeOut(function(){ $(this).remove(); }); e.preventDefault(); }); // tool tips $('.tooltips').tooltip(); // popovers $('.popovers').popover(); }); // icon tab $('#myTab a').click(function (e) { e.preventDefault(); $(this).tab('show'); calculateHeight() }); // custom bar chart if ($(".custom-bar-chart")) { $(".bar").each(function () { var i = $(this).find(".value").html(); $(this).find(".value").html(""); $(this).find(".value").animate({ height: i }, 2000) }) } /*==mailbox jquerys ==*/ //Check jQuery('.ckbox input').click(function(){ var t = jQuery(this); if(t.is(':checked')){ t.closest('tr').addClass('selected'); } else { t.closest('tr').removeClass('selected'); } }); // Star jQuery('.star').click(function(){ if(!jQuery(this).hasClass('star-checked')) { jQuery(this).addClass('star-checked'); } else jQuery(this).removeClass('star-checked'); return false; }); // Read mail jQuery('.table-email .media').click(function(){ location.href="read.html"; }); $(document).ready(function(){$("#show-header-bar").on("click",function(){$("#show-header-bar").hasClass("open")?($(".header-bar").attr("style","top: -200px"),$("#show-header-bar").removeClass("open")):($(".header-bar").attr("style","top: 42px"),$("#show-header-bar").addClass("open"))}),$("#show-right-info-bar").on("click",function(){$("#show-right-info-bar").hasClass("move")?($(".right-info-bar").attr("style","right: -250px"),$("#show-right-info-bar").removeClass("move")):($(".right-info-bar").attr("style","right: 0px"),$("#show-right-info-bar").addClass("move"))})}); })(jQuery);