mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 16:49:58 +09:00
revert r12601
This commit is contained in:
parent
52e9f1fc19
commit
8191a184a8
3 changed files with 5 additions and 16 deletions
11
common/js/xe.min.js
vendored
11
common/js/xe.min.js
vendored
|
|
@ -13,12 +13,11 @@ a,c)},_broadcast:function(a,c,b){for(var d=0;d<g.length;d++)g[d]._cast(a,c,b);th
|
|||
arguments[0],a.extend(c,arguments[1]||{})}!0==c.doClick&&(c.checked=null);"string"==typeof c.wrap&&(c.wrap="#"+c.wrap);var g=c.wrap?a(c.wrap).find("input[name="+b+"]:checkbox"):a("input[name="+b+"]:checkbox");"toggle"==c.checked?g.each(function(){a(this).attr("checked",a(this).attr("checked")?!1:!0)}):!0==c.doClick?g.click():g.attr("checked",c.checked)},displayPopupMenu:function(b,c,g){c=g.menu_id;var e=b.menus;b="";if(this.loaded_popup_menus[c])b=this.loaded_popup_menus[c];else{if(e){e=e.item;if("undefined"==
|
||||
typeof e.length||1>e.length)e=Array(e);if(e.length)for(var h=0;h<e.length;h++){var n=e[h].url,l=e[h].str,m=e[h].target,k="";switch(m){case "popup":k=" onclick=\"popopen(this.href,'"+m+"'); return false;\"";break;case "javascript":k=' onclick="'+n+'; return false; "',n="#"}b+='<li ><a href="'+n+'"'+k+">"+l+"</a></li> "}}this.loaded_popup_menus[c]=b}b&&(c=a("#popup_menu_area").html("<ul>"+b+"</ul>"),b=g.page_y,g=g.page_x,c.outerHeight()+b>a(window).height()+a(window).scrollTop()&&(b=a(window).height()-
|
||||
c.outerHeight()+a(window).scrollTop()),c.outerWidth()+g>a(window).width()+a(window).scrollLeft()&&(g=a(window).width()-c.outerWidth()+a(window).scrollLeft()),c.css({top:b,left:g}).show().focus())}}})(jQuery);
|
||||
jQuery(function(a){a('a[href^="#"]').click(function(){a(a(this).attr("href")).attr("tabindex","0").focus()});a.browser.msie&&a("select").each(function(a,b){for(var e=!1,h=[],d=0;d<b.options.length;d++)b.options[d].disabled?(b.options[d].style.color="#CCCCCC",e=!0):h[a]=-1<h[a]?h[a]:d;if(e&&(b.oldonchange=b.onchange,b.onchange=function(){this.options[this.selectedIndex].disabled?this.selectedIndex=h[a]:this.oldonchange&&this.oldonchange()},0<=b.selectedIndex&&b.options[b.selectedIndex].disabled))b.onchange()});
|
||||
var b=a(".xe_content .fold_button");if(b.size()){var d=a("div.fold_container",b);a("button.more",b).click(function(){a(this).hide().next("button").show().parent().next(d).show()});a("button.less",b).click(function(){a(this).hide().prev("button").show().parent().next(d).hide()})}jQuery('input[type="submit"],button[type="submit"]').click(function(a){var b=jQuery(a.currentTarget);setTimeout(function(){return function(){b.attr("disabled","disabled")}}(),0);setTimeout(function(){return function(){b.removeAttr("disabled")}}(),
|
||||
3E3)})});
|
||||
(function(){function a(a,b){return a.replace(/#.*$/,"")===b.replace(/#.*$/,"")}var b=Array.isArray||function(a){return"[object Array]"==Object.prototype.toString.call(a)};String.prototype.getQuery=function(b){var c=a(this,window.location.href)?current_url:this,g=c.indexOf("?");if(-1==g)return null;var e={};c.substr(g+1,this.length).replace(/([^=]+)=([^&]*)(&|$)/g,function(a,b,c){e[b]=c});b=e[b];"undefined"==typeof b&&(b="");return b};String.prototype.setQuery=function(d,c){var g=a(this,window.location.href)?current_url:
|
||||
this,e=g.indexOf("?"),h=g.replace(/#$/,""),n,l;"undefined"==typeof c&&(c="");if(-1!=e){var m=h.substr(e+1,g.length),k={},u=[],h=g.substr(0,e);m.replace(/([^=]+)=([^&]*)(&|$)/g,function(a,b,e){k[b]=e});k[d]=c;for(var t in k)k.hasOwnProperty(t)&&(l=String(k[t]).trim())&&u.push(t+"="+decodeURI(l));m=u.join("&");h+=m?"?"+m:""}else String(c).trim()&&(h=h+"?"+d+"="+c);e=/^https:\/\/([^:\/]+)(:\d+|)/i;e.test(h)&&(g="http://"+RegExp.$1,window.http_port&&80!=http_port&&(g+=":"+http_port),h=h.replace(e,g));
|
||||
g=!!window.enforce_ssl;if(!g&&b(window.ssl_actions)&&(n=h.getQuery("act")))for(e=0,l=ssl_actions.length;e<l;e++)if(ssl_actions[e]===n){g=!0;break}e=/http:\/\/([^:\/]+)(:\d+|)/i;g&&e.test(h)&&(g="https://"+RegExp.$1,window.https_port&&443!=https_port&&(g+=":"+https_port),h=h.replace(e,g));h=h.replace(/\/(index\.php)?\?/,"/index.php?");return encodeURI(h)};String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")}})();
|
||||
jQuery(function(a){a.browser.msie&&a("select").each(function(a,b){for(var e=!1,h=[],d=0;d<b.options.length;d++)b.options[d].disabled?(b.options[d].style.color="#CCCCCC",e=!0):h[a]=-1<h[a]?h[a]:d;if(e&&(b.oldonchange=b.onchange,b.onchange=function(){this.options[this.selectedIndex].disabled?this.selectedIndex=h[a]:this.oldonchange&&this.oldonchange()},0<=b.selectedIndex&&b.options[b.selectedIndex].disabled))b.onchange()});var b=a(".xe_content .fold_button");if(b.size()){var d=a("div.fold_container",
|
||||
b);a("button.more",b).click(function(){a(this).hide().next("button").show().parent().next(d).show()});a("button.less",b).click(function(){a(this).hide().prev("button").show().parent().next(d).hide()})}jQuery('input[type="submit"],button[type="submit"]').click(function(a){var b=jQuery(a.currentTarget);setTimeout(function(){return function(){b.attr("disabled","disabled")}}(),0);setTimeout(function(){return function(){b.removeAttr("disabled")}}(),3E3)})});
|
||||
(function(){function a(a,b){return a.replace(/#.*$/,"")===b.replace(/#.*$/,"")}var b=Array.isArray||function(a){return"[object Array]"==Object.prototype.toString.call(a)};String.prototype.getQuery=function(b){var c=a(this,window.location.href)?current_url:this,g=c.indexOf("?");if(-1==g)return null;var e={};c.substr(g+1,this.length).replace(/([^=]+)=([^&]*)(&|$)/g,function(a,b,c){e[b]=c});b=e[b];"undefined"==typeof b&&(b="");return b};String.prototype.setQuery=function(d,c){var g=a(this,window.location.href)?
|
||||
current_url:this,e=g.indexOf("?"),h=g.replace(/#$/,""),n,l;"undefined"==typeof c&&(c="");if(-1!=e){var m=h.substr(e+1,g.length),k={},u=[],h=g.substr(0,e);m.replace(/([^=]+)=([^&]*)(&|$)/g,function(a,b,e){k[b]=e});k[d]=c;for(var t in k)k.hasOwnProperty(t)&&(l=String(k[t]).trim())&&u.push(t+"="+decodeURI(l));m=u.join("&");h+=m?"?"+m:""}else String(c).trim()&&(h=h+"?"+d+"="+c);e=/^https:\/\/([^:\/]+)(:\d+|)/i;e.test(h)&&(g="http://"+RegExp.$1,window.http_port&&80!=http_port&&(g+=":"+http_port),h=h.replace(e,
|
||||
g));g=!!window.enforce_ssl;if(!g&&b(window.ssl_actions)&&(n=h.getQuery("act")))for(e=0,l=ssl_actions.length;e<l;e++)if(ssl_actions[e]===n){g=!0;break}e=/http:\/\/([^:\/]+)(:\d+|)/i;g&&e.test(h)&&(g="https://"+RegExp.$1,window.https_port&&443!=https_port&&(g+=":"+https_port),h=h.replace(e,g));h=h.replace(/\/(index\.php)?\?/,"/index.php?");return encodeURI(h)};String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")}})();
|
||||
function xSleep(a){a/=1E3;for(var b=new Date,d=new Date;d.getTime()-b.getTime()<a;)d=new Date}function isDef(){for(var a=0;a<arguments.length;++a)if("undefined"==typeof arguments[a])return!1;return!0}var winopen_list=[];
|
||||
function winopen(a,b,d){"undefined"!=typeof xeVid&&-1<a.indexOf(request_uri)&&!a.getQuery("vid")&&(a=a.setQuery("vid",xeVid));try{"_blank"!=b&&winopen_list[b]&&(winopen_list[b].close(),winopen_list[b]=null)}catch(c){}"undefined"==typeof b&&(b="_blank");"undefined"==typeof d&&(d="");a=window.open(a,b,d);a.focus();"_blank"!=b&&(winopen_list[b]=a)}
|
||||
function popopen(a,b){"undefined"==typeof b&&(b="_blank");"undefined"!=typeof xeVid&&-1<a.indexOf(request_uri)&&!a.getQuery("vid")&&(a=a.setQuery("vid",xeVid));winopen(a,b,"width=800,height=600,scrollbars=yes,resizable=yes,toolbars=no")}function sendMailTo(a){location.href="mailto:"+a}function move_url(a,b){if(!a)return!1;"undefined"==typeof b&&(b="N");b="N"==b?!1:!0;/^\./.test(a)&&(a=request_uri+a);b?winopen(a):location.href=a;return!1}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue