芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/www/media/legacy/js/tabs-state.min.js
jQuery((function(e){e.urlParam=function(e){new RegExp("=$").exec(e)||(e+="=");var t=new RegExp("[\\?&]("+e+")([^]*)").exec(window.location.href);return t?t[1]:null},e.getXpath=function(t){if("string"==typeof t)return document.evaluate(t,document,null,0,null);if(!t||1!=t.nodeType)return"";if(t.id)return"//*[@id='"+t.id+"']";var n=[].filter.call(t.parentNode.children,(function(e){return e.tagName==t.tagName}));return e.getXpath(t.parentNode)+"/"+t.tagName.toLowerCase()+(n.length>1?"["+([].indexOf.call(n,t)+1)+"]":"")},e.findXpath=function(t,n){for(var a,r=[],o=document.evaluate(t,n||document,null,5,null);a=o.iterateNext();)r.push(a);return e(r)};setTimeout((function(){function t(){return window.location.href.toString().split(window.location.host)[1].replace(/&return=[a-zA-Z0-9%]+/,"").split("#")[0]}var n=JSON.parse(sessionStorage.getItem(t())),a=e("a[data-toggle='tab']");if(a.on("click",(function(n){!function(n){if(window.sessionStorage){var a=t(),r=e(n.target).attr("href"),o=e.getXpath(e(n.target).closest(".nav-tabs").first().get(0));if(o&&void 0!==r){var i=o+"|"+r;if(l=JSON.parse(sessionStorage.getItem(a)))!function(e,t){for(var n=0;n
-1&&e.splice(n,1)}(l,o);else var l=[];l.push(i),sessionStorage.setItem(a,JSON.stringify(l))}}}(n)})),a.parent(".active").removeClass("active"),!n){var r=t().replace(/\&id=[0-9]*|[a-z]\&{1}_id=[0-9]*/,"");n=JSON.parse(sessionStorage.getItem(r)),sessionStorage.removeItem(r)}if(null===n||window.location.hash){var o=[];if(window.location.hash){a.parents("ul").each((function(t,n){var a=e(n).find("a[href='"+window.location.hash+"']");if(a.length){a.selector?o.push(a):o.push(a.first());var r=a.closest(".tab-pane");if(r){var i=r.attr("id");if(i){var l=e(r).find("a[href='#"+i+"']");l&&o.push(l)}}}l=null,a=null,r=null,i=null})),o.reverse();for(var i=0;i