From 174255a2fbac809bbe7f15f8b6664730888a125c Mon Sep 17 00:00:00 2001 From: flyskyko Date: Thu, 31 Jan 2013 02:28:04 +0000 Subject: [PATCH] issue 2878, minify git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12628 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- common/js/x.min.js | 39 ++++++++++++++++++++- common/js/xe.js | 39 +++++++++++++++++++-- common/js/xe.min.js | 82 +++++++++++++++++++++++---------------------- 3 files changed, 117 insertions(+), 43 deletions(-) diff --git a/common/js/x.min.js b/common/js/x.min.js index 7d9035fa6..fbdfac0f1 100644 --- a/common/js/x.min.js +++ b/common/js/x.min.js @@ -1 +1,38 @@ -function xDeprecate(a){var b="DEPRECATED : "+a+"() is deprecated function.";if(typeof console=="object"&&typeof console.log=="function"){console.log(b);}}var xOp7Up,xOp6Dn,xIE4Up,xIE4,xIE5,xIE6,xNN4,xUA=navigator.userAgent.toLowerCase();if(window.opera){var i=xUA.indexOf("opera");if(i!=-1){var v=parseInt(xUA.charAt(i+6));xOp7Up=v>=7;xOp6Dn=v<7;}}else{if(navigator.vendor!="KDE"&&document.all&&xUA.indexOf("msie")!=-1){xIE4Up=parseFloat(navigator.appVersion)>=4;xIE4=xUA.indexOf("msie 4")!=-1;xIE5=xUA.indexOf("msie 5")!=-1;xIE6=xUA.indexOf("msie 6")!=-1;}else{if(document.layers){xNN4=true;}}}var xMac=xUA.indexOf("mac")!=-1;var xFF=xUA.indexOf("firefox")!=-1;function xAddEventListener(e,eT,eL,cap){xDeprecate("xAddEventListener");if(!(e=xGetElementById(e))){return;}eT=eT.toLowerCase();if((!xIE4Up&&!xOp7Up)&&e==window){if(eT=="resize"){window.xPCW=xClientWidth();window.xPCH=xClientHeight();window.xREL=eL;xResizeEvent();return;}if(eT=="scroll"){window.xPSL=xScrollLeft();window.xPST=xScrollTop();window.xSEL=eL;xScrollEvent();return;}}var eh="e.on"+eT+"=eL";if(e.addEventListener){e.addEventListener(eT,eL,cap);}else{if(e.attachEvent){e.attachEvent("on"+eT,eL);}else{eval(eh);}}}function xResizeEvent(){xDeprecate("xResizeEvent");if(window.xREL){setTimeout("xResizeEvent()",250);}var a=xClientWidth(),b=xClientHeight();if(window.xPCW!=a||window.xPCH!=b){window.xPCW=a;window.xPCH=b;if(window.xREL){window.xREL();}}}function xScrollEvent(){xDeprecate("xScrollEvent");if(window.xSEL){setTimeout("xScrollEvent()",250);}var a=xScrollLeft(),b=xScrollTop();if(window.xPSL!=a||window.xPST!=b){window.xPSL=a;window.xPST=b;if(window.xSEL){window.xSEL();}}}function xAppendChild(b,a){xDeprecate("xAppendChild");if(b.appendChild){return b.appendChild(a);}else{return null;}}function xClientHeight(){xDeprecate("xClientHeight");var a=0;if(xOp6Dn){a=window.innerHeight;}else{if(document.compatMode=="CSS1Compat"&&!window.opera&&document.documentElement&&document.documentElement.clientHeight){a=document.documentElement.clientHeight;}else{if(document.body&&document.body.clientHeight){a=document.body.clientHeight;}else{if(xDef(window.innerWidth,window.innerHeight,document.width)){a=window.innerHeight;if(document.width>window.innerWidth){a-=16;}}}}}return a;}function xClientWidth(){xDeprecate("xClientWidth");var a=0;if(xOp6Dn){a=window.innerWidth;}else{if(document.compatMode=="CSS1Compat"&&!window.opera&&document.documentElement&&document.documentElement.clientWidth){a=document.documentElement.clientWidth;}else{if(document.body&&document.body.clientWidth){a=document.body.clientWidth;}else{if(xDef(window.innerWidth,window.innerHeight,document.height)){a=window.innerWidth;if(document.height>window.innerHeight){a-=16;}}}}}return a;}function xCreateElement(a){xDeprecate("xCreateElement");if(document.createElement){return document.createElement(a);}else{return null;}}function xDef(){xDeprecate("xDef");for(var a=0;aa?b:a;}function xGetBodyHeight(){xDeprecate("xGetBodyHeight");var b=xClientHeight();var a=window.document.body.scrollHeight;return b>a?b:a;}function xGetComputedStyle(b,h,e){xDeprecate("xGetComputedStyle");var j,k="undefined";var g=document.defaultView;if(g&&g.getComputedStyle){j=g.getComputedStyle(b,"");if(j){k=j.getPropertyValue(h);}}else{if(b.currentStyle){var d=h.split("-");h=d[0];for(var f=1;f0){var f=document.cookie.indexOf(d);if(f!=-1){f+=d.length;var a=document.cookie.indexOf(";",f);if(a==-1){a=document.cookie.length;}e=unescape(document.cookie.substring(f,a));}}return e;}function xGetElementById(a){xDeprecate("xGetElementById");if(typeof(a)!="string"){return a;}if(document.getElementById){a=document.getElementById(a);}else{if(document.all){a=document.all[a];}else{a=null;}}return a;}function xGetElementsByAttribute(b,g,e,h){xDeprecate("xGetElementsByAttribute");var j,f,l=new Array(),k=new RegExp(e,"i");f=xGetElementsByTagName(b);for(var d=0;d=0){var j=0,d=0,b=0,l=0;if(document.compatMode=="CSS1Compat"){var a=xGetComputedStyle;j=a(k,"padding-top",1);if(j!==null){d=a(k,"padding-bottom",1);b=a(k,"border-top-width",1);l=a(k,"border-bottom-width",1);}else{if(xDef(k.offsetHeight,k.style.height)){k.style.height=g+"px";j=k.offsetHeight-g;}}}g-=(j+d+b+l);if(isNaN(g)||g<0){return null;}else{k.style.height=g+"px";}}g=k.offsetHeight;}else{if(f&&xDef(k.style.pixelHeight)){if(g>=0){k.style.pixelHeight=g;}g=k.style.pixelHeight;}}}return g;}function xHex(f,d,b){xDeprecate("xHex");var e="";var g=Math.ceil(f);if(b){e=b;}g=g.toString(16);for(var a=0;a=0){var g=0,k=0,j=0,d=0;if(document.compatMode=="CSS1Compat"){var a=xGetComputedStyle;g=a(h,"padding-left",1);if(g!==null){k=a(h,"padding-right",1);j=a(h,"border-left-width",1);d=a(h,"border-right-width",1);}else{if(xDef(h.offsetWidth,h.style.width)){h.style.width=b+"px";g=h.offsetWidth-b;}}}b-=(g+k+j+d);if(isNaN(b)||b<0){return null;}else{h.style.width=b+"px";}}b=h.offsetWidth;}else{if(f&&xDef(h.style.pixelWidth)){if(b>=0){h.style.pixelWidth=b;}b=h.style.pixelWidth;}}}return b;}function xZIndex(b,a){xDeprecate("xZIndex");if(!(b=xGetElementById(b))){return 0;}if(b.style&&xDef(b.style.zIndex)){if(xNum(a)){b.style.zIndex=a;}a=parseInt(b.style.zIndex);}return a;}function xStopPropagation(a){xDeprecate("xStopPropagation");if(a&&a.stopPropagation){a.stopPropagation();}else{if(window.event){window.event.cancelBubble=true;}}} \ No newline at end of file +/** + * x.js compiled from X 4.0 with XC 0.27b. + * Distributed by GNU LGPL. For copyrights, license, documentation and more visit Cross-Browser.com + * Copyright 2001-2005 Michael Foster (Cross-Browser.com) + **/ +function xDeprecate(a){"object"==typeof console&&"function"==typeof console.log&&console.log("DEPRECATED : "+a+"() is deprecated function.")}var xOp7Up,xOp6Dn,xIE4Up,xIE4,xIE5,xIE6,xNN4,xUA=navigator.userAgent.toLowerCase(); +if(window.opera){var i=xUA.indexOf("opera");if(-1!=i){var v=parseInt(xUA.charAt(i+6));xOp7Up=7<=v;xOp6Dn=7>v}}else"KDE"!=navigator.vendor&&document.all&&-1!=xUA.indexOf("msie")?(xIE4Up=4<=parseFloat(navigator.appVersion),xIE4=-1!=xUA.indexOf("msie 4"),xIE5=-1!=xUA.indexOf("msie 5"),xIE6=-1!=xUA.indexOf("msie 6")):document.layers&&(xNN4=!0);var xMac=-1!=xUA.indexOf("mac"),xFF=-1!=xUA.indexOf("firefox"); +function xAddEventListener(a,b,d,e){xDeprecate("xAddEventListener");if(a=xGetElementById(a)){b=b.toLowerCase();if(!xIE4Up&&!xOp7Up&&a==window){if("resize"==b){window.xPCW=xClientWidth();window.xPCH=xClientHeight();window.xREL=d;xResizeEvent();return}if("scroll"==b){window.xPSL=xScrollLeft();window.xPST=xScrollTop();window.xSEL=d;xScrollEvent();return}}var f="e.on"+b+"=eL";a.addEventListener?a.addEventListener(b,d,e):a.attachEvent?a.attachEvent("on"+b,d):eval(f)}} +function xResizeEvent(){xDeprecate("xResizeEvent");window.xREL&&setTimeout("xResizeEvent()",250);var a=xClientWidth(),b=xClientHeight();if(window.xPCW!=a||window.xPCH!=b)window.xPCW=a,window.xPCH=b,window.xREL&&window.xREL()}function xScrollEvent(){xDeprecate("xScrollEvent");window.xSEL&&setTimeout("xScrollEvent()",250);var a=xScrollLeft(),b=xScrollTop();if(window.xPSL!=a||window.xPST!=b)window.xPSL=a,window.xPST=b,window.xSEL&&window.xSEL()} +function xAppendChild(a,b){xDeprecate("xAppendChild");return a.appendChild?a.appendChild(b):null} +function xClientHeight(){xDeprecate("xClientHeight");var a=0;xOp6Dn?a=window.innerHeight:"CSS1Compat"==document.compatMode&&!window.opera&&document.documentElement&&document.documentElement.clientHeight?a=document.documentElement.clientHeight:document.body&&document.body.clientHeight?a=document.body.clientHeight:xDef(window.innerWidth,window.innerHeight,document.width)&&(a=window.innerHeight,document.width>window.innerWidth&&(a-=16));return a} +function xClientWidth(){xDeprecate("xClientWidth");var a=0;xOp6Dn?a=window.innerWidth:"CSS1Compat"==document.compatMode&&!window.opera&&document.documentElement&&document.documentElement.clientWidth?a=document.documentElement.clientWidth:document.body&&document.body.clientWidth?a=document.body.clientWidth:xDef(window.innerWidth,window.innerHeight,document.height)&&(a=window.innerWidth,document.height>window.innerHeight&&(a-=16));return a} +function xCreateElement(a){xDeprecate("xCreateElement");return document.createElement?document.createElement(a):null}function xDef(){xDeprecate("xDef");for(var a=0;ab?a:b}function xGetBodyHeight(){xDeprecate("xGetBodyHeight");var a=xClientHeight(),b=window.document.body.scrollHeight;return a>b?a:b} +function xGetComputedStyle(a,b,d){xDeprecate("xGetComputedStyle");var e="undefined",f=document.defaultView;if(f&&f.getComputedStyle)(a=f.getComputedStyle(a,""))&&(e=a.getPropertyValue(b));else if(a.currentStyle){e=b.split("-");b=e[0];for(f=1;fb?0:Math.round(b):-1;var d=xDef(a.style);if(a==document||"html"==a.tagName.toLowerCase()||"body"==a.tagName.toLowerCase())b=xClientHeight();else if(d&&xDef(a.offsetHeight)&&xStr(a.style.height)){if(0<=b){var e=d=0,f=0,h=0;if("CSS1Compat"==document.compatMode){var g=xGetComputedStyle,d=g(a,"padding-top",1);null!==d?(e=g(a,"padding-bottom",1),f=g(a,"border-top-width",1),h=g(a,"border-bottom-width",1)):xDef(a.offsetHeight, +a.style.height)&&(a.style.height=b+"px",d=a.offsetHeight-b)}b-=d+e+f+h;if(isNaN(b)||0>b)return null;a.style.height=b+"px"}b=a.offsetHeight}else d&&xDef(a.style.pixelHeight)&&(0<=b&&(a.style.pixelHeight=b),b=a.style.pixelHeight);return b}function xHex(a,b,d){xDeprecate("xHex");var e="";a=Math.ceil(a);d&&(e=d);a=a.toString(16);for(d=0;db?0:Math.round(b):-1;var d=xDef(a.style);if(a==document||"html"==a.tagName.toLowerCase()||"body"==a.tagName.toLowerCase())b=xClientWidth();else if(d&&xDef(a.offsetWidth)&&xStr(a.style.width)){if(0<=b){var e=d=0,f=0,h=0;if("CSS1Compat"==document.compatMode){var g=xGetComputedStyle,d=g(a,"padding-left",1);null!==d?(e=g(a,"padding-right",1),f=g(a,"border-left-width",1),h=g(a,"border-right-width",1)):xDef(a.offsetWidth, +a.style.width)&&(a.style.width=b+"px",d=a.offsetWidth-b)}b-=d+e+f+h;if(isNaN(b)||0>b)return null;a.style.width=b+"px"}b=a.offsetWidth}else d&&xDef(a.style.pixelWidth)&&(0<=b&&(a.style.pixelWidth=b),b=a.style.pixelWidth);return b}function xZIndex(a,b){xDeprecate("xZIndex");if(!(a=xGetElementById(a)))return 0;a.style&&xDef(a.style.zIndex)&&(xNum(b)&&(a.style.zIndex=b),b=parseInt(a.style.zIndex));return b} +function xStopPropagation(a){xDeprecate("xStopPropagation");a&&a.stopPropagation?a.stopPropagation():window.event&&(window.event.cancelBubble=!0)}; diff --git a/common/js/xe.js b/common/js/xe.js index d0526b4b3..b6baac9c9 100644 --- a/common/js/xe.js +++ b/common/js/xe.js @@ -424,6 +424,11 @@ if(jQuery) jQuery.noConflict(); /* jQuery(document).ready() */ jQuery(function($) { + // Anchor: focus move to target + $('a[href^="#"]').click(function(){ + $($(this).attr('href')).attr('tabindex','0').css('outline','0').focus(); + }); + /* select - option의 disabled=disabled 속성을 IE에서도 체크하기 위한 함수 */ if($.browser.msie) { $('select').each(function(i, sels) { @@ -755,7 +760,7 @@ function setFixedPopupSize() { w = $pc.width(10).height(10000).get(0).scrollWidth + offset.left*2; h = $pc.height(10).width(10000).get(0).scrollHeight + offset.top*2; - if(w < 600) w = 600 + offset.left*2; + if(w < 800) w = 800 + offset.left*2; dw = $win.width(); dh = $win.height(); @@ -1568,6 +1573,14 @@ $.exec_xml = window.exec_xml = function(module, act, params, callback_func, resp // ajax 통신중 대기 메세지 출력 (show_waiting_message값을 false로 세팅시 보이지 않음) var waiting_obj = $('.wfsr'); if(show_waiting_message && waiting_obj.length) { + + var timeoutId = $(".wfsr").data('timeout_id'); + if(timeoutId) clearTimeout(timeoutId); + $(".wfsr").css('opacity', 0.0); + $(".wfsr").data('timeout_id', setTimeout(function(){ + $(".wfsr").css('opacity', ''); + }, 1000)); + waiting_obj.html(waiting_message).show(); } } @@ -1613,6 +1626,13 @@ $.exec_json = function(action,data,func){ if(typeof(data) == 'undefined') data = {}; action = action.split("."); if(action.length == 2){ + // The cover can be disturbing if it consistently blinks (because ajax call usually takes very short time). So make it invisible for the 1st 0.5 sec and then make it visible. + var timeoutId = $(".wfsr").data('timeout_id'); + if(timeoutId) clearTimeout(timeoutId); + $(".wfsr").css('opacity', 0.0); + $(".wfsr").data('timeout_id', setTimeout(function(){ + $(".wfsr").css('opacity', ''); + }, 1000)); if(show_waiting_message) $(".wfsr").html(waiting_message).show(); $.extend(data,{module:action[0],act:action[1]}); @@ -1625,7 +1645,16 @@ $.exec_json = function(action,data,func){ ,data:$.param(data) ,success : function(data){ $(".wfsr").hide().trigger('cancel_confirm'); - if(data.error > 0) alert(data.message); + if(data.error != 0 && data.error > -1000){ + if(data.error == -1 && data.message == 'msg_is_not_administrator'){ + alert('You are not logged in as an administrator'); + // window.location.reload(); + return; + }else{ + alert(data.message); + return; + } + } if($.isFunction(func)) func(data); } }); @@ -1639,6 +1668,12 @@ $.fn.exec_html = function(action,data,type,func,args){ var self = $(this); action = action.split("."); if(action.length == 2){ + var timeoutId = $(".wfsr").data('timeout_id'); + if(timeoutId) clearTimeout(timeoutId); + $(".wfsr").css('opacity', 0.0); + $(".wfsr").data('timeout_id', setTimeout(function(){ + $(".wfsr").css('opacity', ''); + }, 1000)); if(show_waiting_message) $(".wfsr").html(waiting_message).show(); $.extend(data,{module:action[0],act:action[1]}); diff --git a/common/js/xe.min.js b/common/js/xe.min.js index e3121fefa..591f83f3c 100644 --- a/common/js/xe.min.js +++ b/common/js/xe.min.js @@ -4,29 +4,29 @@ * @brief XE Common JavaScript **/ (function(a){function b(){return function(){var g=this;a.isArray(this._plugins)&&(this._plugins=[]);this._messages?this._messages={}:this._binded_fn={};a.each(this,function(c,b){if(!a.isFunction(b)||!/^API_([A-Z0-9_]+)$/.test(c))return!0;var d=RegExp.$1,e=function(a,b){return g[c](a,b)};g._messages?g._messages[d]=[e]:g._binded_fn[d]=e});a.isFunction(this.init)&&this.init.apply(this,arguments)}}var d,c,e=[];d={_plugins:[],_messages:{},getPlugin:function(g){g=g.toLowerCase();return a.isArray(this._plugins[g])? -this._plugins[g]:[]},registerPlugin:function(g){var c=this,b=g.getName().toLowerCase();if(0<=a.inArray(g,this._plugins))return!1;this._plugins.push(g);a.isArray(this._plugins[b])||(this._plugins[b]=[]);this._plugins[b].push(g);a.each(g._binded_fn,function(a,g){c.registerHandler(a,g)});g.oApp=this;a.isFunction(g.activate)&&g.activate();return!0},registerHandler:function(g,c){var b=this._messages,g=g.toUpperCase();a.isArray(b[g])||(b[g]=[]);b[g].push(c)},cast:function(a,c){return this._cast(this,a, -c||[])},broadcast:function(a,c,b){this.parent&&this.parent._broadcast&&this.parent._broadcast(a,c,b)},_cast:function(c,b,d){var e,m=this._messages,b=b.toUpperCase();if(!m["BEFORE_"+b]&&!this["API_BEFORE_"+b]||this._cast(c,"BEFORE_"+b,d)){var h=[];if(a.isArray(m[b]))for(e=0;eh.length&&(h=h[0]);(m["AFTER_"+b]||this["API_AFTER_"+b])&&this._cast(c,"AFTER_"+b,d);return/^(?:AFTER|BEFORE)_/.test(b)?a.isArray(h)?0>a.inArray(!1,h):"undefined"==typeof h?!0:!!h:h}}};c= -{oApp:null,cast:function(a,c){if(this.oApp&&this.oApp._cast)return this.oApp._cast(this,a,c||[])},broadcast:function(a,c){this.oApp&&this.oApp.broadcast&&this.oApp.broadcast(this,mag,c||[])}};window.xe=a.extend(d,{getName:function(){return"Core"},createApp:function(c,e){var i=b();a.extend(i.prototype,d,e);i.prototype.getName=function(){return c};return i},createPlugin:function(g,d){var e=b();a.extend(e.prototype,c,d);e.prototype.getName=function(){return g};return e},getApps:function(){return a.makeArray(e)}, +this._plugins[g]:[]},registerPlugin:function(g){var c=this,b=g.getName().toLowerCase();if(0<=a.inArray(g,this._plugins))return!1;this._plugins.push(g);a.isArray(this._plugins[b])||(this._plugins[b]=[]);this._plugins[b].push(g);a.each(g._binded_fn,function(a,g){c.registerHandler(a,g)});g.oApp=this;a.isFunction(g.activate)&&g.activate();return!0},registerHandler:function(g,c){var b=this._messages;g=g.toUpperCase();a.isArray(b[g])||(b[g]=[]);b[g].push(c)},cast:function(a,c){return this._cast(this,a, +c||[])},broadcast:function(a,c,b){this.parent&&this.parent._broadcast&&this.parent._broadcast(a,c,b)},_cast:function(c,b,d){var e,n=this._messages;b=b.toUpperCase();if(!n["BEFORE_"+b]&&!this["API_BEFORE_"+b]||this._cast(c,"BEFORE_"+b,d)){var h=[];if(a.isArray(n[b]))for(e=0;eh.length&&(h=h[0]);(n["AFTER_"+b]||this["API_AFTER_"+b])&&this._cast(c,"AFTER_"+b,d);return/^(?:AFTER|BEFORE)_/.test(b)?a.isArray(h)?0>a.inArray(!1,h):"undefined"==typeof h?!0:!!h:h}}};c= +{oApp:null,cast:function(a,c){if(this.oApp&&this.oApp._cast)return this.oApp._cast(this,a,c||[])},broadcast:function(a,c){this.oApp&&this.oApp.broadcast&&this.oApp.broadcast(this,mag,c||[])}};window.xe=a.extend(d,{getName:function(){return"Core"},createApp:function(c,e){var j=b();a.extend(j.prototype,d,e);j.prototype.getName=function(){return c};return j},createPlugin:function(g,d){var e=b();a.extend(e.prototype,c,d);e.prototype.getName=function(){return g};return e},getApps:function(){return a.makeArray(e)}, getApp:function(a){a=(a||"").toLowerCase();return"undefined"!=typeof e[a]?e[a]:null},registerApp:function(c){var b=c.getName().toLowerCase();e.push(c);a.isArray(e[b])||(e[b]=[]);e[b].push(c);c.parent=this;a.isFunction(c.activate)&&c.activate()},unregisterApp:function(c){var b=c.getName().toLowerCase(),d=a.inArray(c,e);0<=d&&(e=e.splice(d,1));a.isArray(e[b])&&(d=a.inArray(c,e[b]),0<=d&&(e[b]=e[b].splice(d,1)));a.isFunction(c.deactivate)&&c.deactivate()},broadcast:function(a,c){this._broadcast(this, a,c)},_broadcast:function(a,c,b){for(var d=0;dg.length)g=Array(g);if(g.length)for(var j=0;j"+l+" "}}this.loaded_popup_menus[c]=b}b&&(c=a("#popup_menu_area").html("
    "+b+"
"),b=e.page_y,e=e.page_x,c.outerHeight()+ +arguments[0],a.extend(c,arguments[1]||{})}!0==c.doClick&&(c.checked=null);"string"==typeof c.wrap&&(c.wrap="#"+c.wrap);var e=c.wrap?a(c.wrap).find("input[name="+b+"]:checkbox"):a("input[name="+b+"]:checkbox");"toggle"==c.checked?e.each(function(){a(this).attr("checked",a(this).attr("checked")?!1:!0)}):!0==c.doClick?e.click():e.attr("checked",c.checked)},displayPopupMenu:function(b,c,e){c=e.menu_id;var g=b.menus;b="";if(this.loaded_popup_menus[c])b=this.loaded_popup_menus[c];else{if(g){g=g.item;if("undefined"== +typeof g.length||1>g.length)g=Array(g);if(g.length)for(var k=0;k"+m+" "}}this.loaded_popup_menus[c]=b}b&&(c=a("#popup_menu_area").html("
    "+b+"
"),b=e.page_y,e=e.page_x,c.outerHeight()+ b>a(window).height()+a(window).scrollTop()&&(b=a(window).height()-c.outerHeight()+a(window).scrollTop()),c.outerWidth()+e>a(window).width()+a(window).scrollLeft()&&(e=a(window).width()-c.outerWidth()+a(window).scrollLeft()),c.css({top:b,left:e}).show())}}})(jQuery); -jQuery(function(a){a.browser.msie&&a("select").each(function(a,b){for(var g=!1,d=[],i=0;i';else if(/\.flv$/i.test(a)||/\.mov$/i.test(a)||/\.moov$/i.test(a)||/\.m4v$/i.test(a))g='';else if(/\.flv$/i.test(a)||/\.mov$/i.test(a)||/\.moov$/i.test(a)||/\.m4v$/i.test(a))g='';else if(/\.swf/i.test(a)){var g="undefined"!=typeof enforce_ssl&&enforce_ssl?"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0":"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0",g='',g=g+(''),j;for(j in c)"undefined"!=c[j]&&""!=c[j]&&(g+='');g+=''}else{if(jQuery.browser.mozilla||jQuery.browser.opera)e=c.autostart&&"false"!=c.autostart?"1":"0";g='',g=g+(''),k;for(k in c)"undefined"!=c[k]&&""!=c[k]&&(g+='');g+=''}else{if(jQuery.browser.mozilla||jQuery.browser.opera)e=c.autostart&&"false"!=c.autostart?"1":"0";g='.popup"),d,c,e,g;g=a.css({overflow:"scroll"}).offset();d=a.width(10).height(1E4).get(0).scrollWidth+2*g.left;c=a.height(10).width(1E4).get(0).scrollHeight+2*g.top;600>d&&(d=600+2*g.left);e=b.width();b=b.height();d!=e&&window.resizeBy(d-e,0);c!=b&&window.resizeBy(0,c-b);a.width(d-2*g.left).css({overflow:"",height:""})} +function setFixedPopupSize(){var a=jQuery,b=a(window),a=a("body>.popup"),d,c,e,g;g=a.css({overflow:"scroll"}).offset();d=a.width(10).height(1E4).get(0).scrollWidth+2*g.left;c=a.height(10).width(1E4).get(0).scrollHeight+2*g.top;800>d&&(d=800+2*g.left);e=b.width();b=b.height();d!=e&&window.resizeBy(d-e,0);c!=b&&window.resizeBy(0,c-b);a.width(d-2*g.left).css({overflow:"",height:""})} function doCallModuleAction(a,b,d){exec_xml(a,b,{target_srl:d,cur_mid:current_mid,mid:current_mid},completeCallModuleAction)}function completeCallModuleAction(a){"success"!=a.message&&alert(a.message);location.reload()}function completeMessage(a){alert(a.message);location.reload()}function doChangeLangType(a){"string"==typeof a?setLangType(a):setLangType(a.options[a.selectedIndex].value);location.href=location.href.setQuery("l","")} function setLangType(a){var b=new Date;b.setTime(b.getTime()+6048E8);setCookie("lang_type",a,b,"/")} function doDocumentPreview(a){for(;"FORM"!=a.nodeName;)a=a.parentNode;if("FORM"==a.nodeName){a=a.getAttribute("editor_sequence");a=editorGetContent(a);window.open("","previewDocument","toolbars=no,width=700px;height=800px,scrollbars=yes,resizable=yes");var b=jQuery("#previewDocument");b.length?b=b[0]:(jQuery('
').appendTo(document.body),b= @@ -35,10 +35,10 @@ function doDocumentSave(a){var b=a.form.getAttribute("editor_sequence"),d=editor "procDocumentTempSave",e,completeDocumentSave,["error","message","document_srl"],e,a.form);editorRelKeys[b].content.value=d;return!1}function completeDocumentSave(a){jQuery("input[name=document_srl]").eq(0).val(a.document_srl);alert(a.message)}var objForSavedDoc=null;function doDocumentLoad(a){objForSavedDoc=a.form;popopen(request_uri.setQuery("module","document").setQuery("act","dispTempSavedList"))} function doDocumentSelect(a){opener&&opener.objForSavedDoc&&(opener.location.href=opener.current_url.setQuery("document_srl",a).setQuery("act","dispBoardWrite"));window.close()}function viewSkinInfo(a,b){popopen("./?module=module&act=dispModuleSkinInfo&selected_module="+a+"&skin="+b,"SkinInfo")}var addedDocument=[];function doAddDocumentCart(a){addedDocument[addedDocument.length]=a.value;setTimeout(function(){callAddDocumentCart(addedDocument.length)},100)} function callAddDocumentCart(a){1>addedDocument.length||a!=addedDocument.length||(a=[],a.srls=addedDocument.join(","),exec_xml("document","procDocumentAddCart",a,null),addedDocument=[])} -function transRGB2Hex(a){if(!a)return a;if(-1a.toLowerCase().indexOf("rgb"))return a;a=a.replace(/^rgb\(/i,"").replace(/\)$/,"");value_list=a.split(",");for(var a="",b=0;ba.toLowerCase().indexOf("rgb"))return a;a=a.replace(/^rgb\(/i,"").replace(/\)$/,"");value_list=a.split(",");a="";for(var b=0;b>2,d=(d&3)<<4|c>>4,j=(c&15)<<2|e>>6,i=e&63,isNaN(c)?j=i=64:isNaN(e)&&(i=64),b=b+this._keyStr.charAt(g)+this._keyStr.charAt(d)+this._keyStr.charAt(j)+this._keyStr.charAt(i);return b},decode:function(a){for(var b="",d,c,e,g,j,i=0,a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");i< -a.length;)d=this._keyStr.indexOf(a.charAt(i++)),c=this._keyStr.indexOf(a.charAt(i++)),g=this._keyStr.indexOf(a.charAt(i++)),j=this._keyStr.indexOf(a.charAt(i++)),d=d<<2|c>>4,c=(c&15)<<4|g>>2,e=(g&3)<<6|j,b+=String.fromCharCode(d),64!=g&&(b+=String.fromCharCode(c)),64!=j&&(b+=String.fromCharCode(e));return b=Base64._utf8_decode(b)},_utf8_encode:function(a){for(var a=a.replace(/\r\n/g,"\n"),b="",d=0;dc?b+=String.fromCharCode(c):(127c?b+=String.fromCharCode(c>> +var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a){var b="",d,c,e,g,k,j,m=0;for(a=Base64._utf8_encode(a);m>2,d=(d&3)<<4|c>>4,k=(c&15)<<2|e>>6,j=e&63,isNaN(c)?k=j=64:isNaN(e)&&(j=64),b=b+this._keyStr.charAt(g)+this._keyStr.charAt(d)+this._keyStr.charAt(k)+this._keyStr.charAt(j);return b},decode:function(a){var b="",d,c,e,g,k,j=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");j< +a.length;)d=this._keyStr.indexOf(a.charAt(j++)),c=this._keyStr.indexOf(a.charAt(j++)),g=this._keyStr.indexOf(a.charAt(j++)),k=this._keyStr.indexOf(a.charAt(j++)),d=d<<2|c>>4,c=(c&15)<<4|g>>2,e=(g&3)<<6|k,b+=String.fromCharCode(d),64!=g&&(b+=String.fromCharCode(c)),64!=k&&(b+=String.fromCharCode(e));return b=Base64._utf8_decode(b)},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");for(var b="",d=0;dc?b+=String.fromCharCode(c):(127c?b+=String.fromCharCode(c>> 6|192):(b+=String.fromCharCode(c>>12|224),b+=String.fromCharCode(c>>6&63|128)),b+=String.fromCharCode(c&63|128))}return b},_utf8_decode:function(a){for(var b="",d=0,c=c1=c2=0;dc?(b+=String.fromCharCode(c),d++):191c?(c2=a.charCodeAt(d+1),b+=String.fromCharCode((c&31)<<6|c2&63),d+=2):(c2=a.charCodeAt(d+1),c3=a.charCodeAt(d+2),b+=String.fromCharCode((c&15)<<12|(c2&63)<<6|c3&63),d+=3);return b}}; if("undefined"==typeof resizeImageContents)var resizeImageContents=function(){};if("undefined"==typeof activateOptionDisabled)var activateOptionDisabled=function(){};objectExtend=jQuery.extend;function toggleDisplay(a){jQuery("#"+a).toggle()}function svc_folder_open(a){jQuery("#_folder_open_"+a).hide();jQuery("#_folder_close_"+a).show();jQuery("#_folder_"+a).show()}function svc_folder_close(a){jQuery("#_folder_open_"+a).show();jQuery("#_folder_close_"+a).hide();jQuery("#_folder_"+a).hide()} function open_calendar(a,b,d){"undefined"==typeof b&&(b="");var c="./common/tpl/calendar.php?";a&&(c+="fo_id="+a);b&&(c+="&day_str="+b);d&&(c+="&callback_func="+d);popopen(c,"Calendar")}var loaded_popup_menus=XE.loaded_popup_menus;function createPopupMenu(){}function chkPopupMenu(){}function displayPopupMenu(a,b,d){XE.displayPopupMenu(a,b,d)}function GetObjLeft(a){return jQuery(a).offset().left}function GetObjTop(a){return jQuery(a).offset().top} @@ -46,29 +46,31 @@ function replaceOuterHTML(a,b){jQuery(a).replaceWith(b)}function getOuterHTML(a) jQuery(function(a){a(document).click(function(b){var d=a("#popup_menu_area");d.length||(d=a('