diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-12-07 10:17:25 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-12-07 10:17:25 +0000 |
| commit | e7b243973132b555e66a0517e25232ba213bc35e (patch) | |
| tree | ff9d04034493cc544d1064e56a1c8b8265d63b3f /wp-includes/js | |
| parent | f57c5009b529dcc2494fc719f605ef64b7f9b4c7 (diff) | |
| download | wordpress-mu-e7b243973132b555e66a0517e25232ba213bc35e.tar.gz wordpress-mu-e7b243973132b555e66a0517e25232ba213bc35e.tar.xz wordpress-mu-e7b243973132b555e66a0517e25232ba213bc35e.zip | |
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@819 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/js')
| -rw-r--r-- | wp-includes/js/autosave.js.php | 39 | ||||
| -rw-r--r-- | wp-includes/js/list-manipulation-js.php | 13 | ||||
| -rw-r--r-- | wp-includes/js/prototype.compressed.js | 1 | ||||
| -rw-r--r-- | wp-includes/js/tinymce/themes/advanced/jscripts/link.js | 2 |
4 files changed, 41 insertions, 14 deletions
diff --git a/wp-includes/js/autosave.js.php b/wp-includes/js/autosave.js.php index 934bfa0..67fcde7 100644 --- a/wp-includes/js/autosave.js.php +++ b/wp-includes/js/autosave.js.php @@ -13,9 +13,10 @@ function autosave_start_timer() { form.addEventListener("submit", function () { autosavePeriodical.currentlyExecuting = true; }, false); } if(form.attachEvent) { - $('save').attachEvent("onclick", function () { autosavePeriodical.currentlyExecuting = true; }); - $('publish').attachEvent("onclick", function () { autosavePeriodical.currentlyExecuting = true; }); - $('deletepost').attachEvent("onclick", function () { autosavePeriodical.currentlyExecuting = true; }); + form.save ? form.save.attachEvent("onclick", function () { autosavePeriodical.currentlyExecuting = true; }) : null; + form.submit ? form.submit.attachEvent("onclick", function () { autosavePeriodical.currentlyExecuting = true; }) : null; + form.publish ? form.publish.attachEvent("onclick", function () { autosavePeriodical.currentlyExecuting = true; }) : null; + form.deletepost ? form.deletepost.attachEvent("onclick", function () { autosavePeriodical.currentlyExecuting = true; }) : null; } } addLoadEvent(autosave_start_timer) @@ -38,9 +39,9 @@ function autosave_update_post_ID() { var message; if(isNaN(res)) { - message = "<?php js_escape(__('Error: ')); ?>" + response; + message = "<?php echo js_escape(__('Error: ')); ?>" + response; } else { - message = "<?php js_escape(__('Saved at ')); ?>" + autosave_cur_time(); + message = "<?php echo js_escape(__('Saved at ')); ?>" + autosave_cur_time(); $('post_ID').name = "post_ID"; $('post_ID').value = res; // We need new nonces @@ -57,10 +58,11 @@ function autosave_update_post_ID() { $('hiddenaction').value = 'editpost'; } $('autosave').innerHTML = message; + autosave_enable_buttons(); } function autosave_loading() { - $('autosave').innerHTML = "<?php js_escape(__('Saving Draft...')); ?>"; + $('autosave').innerHTML = "<?php echo js_escape(__('Saving Draft...')); ?>"; } function autosave_saved() { @@ -69,13 +71,30 @@ function autosave_saved() { var message; if(isNaN(res)) { - message = "<?php js_escape(__('Error: ')); ?>" + response; + message = "<?php echo js_escape(__('Error: ')); ?>" + response; } else { - message = "<?php js_escape(__('Saved at ')); ?>" + autosave_cur_time() + "."; + message = "<?php echo js_escape(__('Saved at ')); ?>" + autosave_cur_time() + "."; } $('autosave').innerHTML = message; + autosave_enable_buttons(); } - + +function autosave_disable_buttons() { + var form = $('post'); + form.save ? form.save.disabled = 'disabled' : null; + form.submit ? form.submit.disabled = 'disabled' : null; + form.publish ? form.publish.disabled = 'disabled' : null; + form.deletepost ? form.deletepost.disabled = 'disabled' : null; +} + +function autosave_enable_buttons() { + var form = $('post'); + form.save ? form.save.disabled = '' : null; + form.submit ? form.submit.disabled = '' : null; + form.publish ? form.publish.disabled = '' : null; + form.deletepost ? form.deletepost.disabled = '' : null; +} + function autosave() { var form = $('post'); var rich = ((typeof tinyMCE != "undefined") && tinyMCE.getInstanceById('content')) ? true : false; @@ -95,6 +114,8 @@ function autosave() { if(form.post_title.value.length==0 || form.content.value.length==0 || form.post_title.value+form.content.value == autosaveLast) return; + autosave_disable_buttons(); + autosaveLast = form.post_title.value+form.content.value; cats = document.getElementsByName("post_category[]"); diff --git a/wp-includes/js/list-manipulation-js.php b/wp-includes/js/list-manipulation-js.php index eb67077..8787210 100644 --- a/wp-includes/js/list-manipulation-js.php +++ b/wp-includes/js/list-manipulation-js.php @@ -37,6 +37,8 @@ Object.extend(listMan.prototype, { ajaxAdd.addOnComplete( function(transport) { var newItems = $A(transport.responseXML.getElementsByTagName(what)); if ( newItems ) { + var showLinkMessage = ''; + var m = ''; newItems.each( function(i) { var id = i.getAttribute('id'); var exists = $(what+'-'+id); @@ -44,10 +46,15 @@ Object.extend(listMan.prototype, { tempObj.replaceListItem( exists, getNodeValue(i,'response_data'), update ); else tempObj.addListItem( getNodeValue(i, 'response_data') ); - if ( tempObj.showLink ) - tempObj.showLink = id; + m = getNodeValue(i, 'show-link'); + showLinkMessage += showLinkMessage ? "<br />\n" : ''; + if ( m ) + showLinkMessage += m; + else + showLinkMessage += "<a href='#" + what + '-' + id + "'><?php echo js_escape(__('Jump to new item')); ?>"; }); - ajaxAdd.myResponseElement.update(tempObj.showLink ? ( "<div id='jumplink' class='updated fade'><p><a href='#" + what + '-' + tempObj.showLink + "'><?php js_escape(__('Jump to new item')); ?></a></p></div>" ) : ''); + if ( tempObj.showLink && showLinkMessage ) + ajaxAdd.myResponseElement.update("<div id='jumplink' class='updated fade'><p>" + showLinkMessage + "</p></div>"); } if ( tempObj.addComplete && typeof tempObj.addComplete == 'function' ) tempObj.addComplete( what, where, update, transport ); diff --git a/wp-includes/js/prototype.compressed.js b/wp-includes/js/prototype.compressed.js deleted file mode 100644 index a2ab35a..0000000 --- a/wp-includes/js/prototype.compressed.js +++ /dev/null @@ -1 +0,0 @@ -var Prototype={Version:"1.5.0_rc0",ScriptFragment:"(?:<script.*?>)((\n|\r|.)*?)(?:</script>)",emptyFunction:function(){},K:function(x){return x;}};var Class={create:function(){return function(){this.initialize.apply(this,arguments);};}};var Abstract=new Object();Object.extend=function(_2,_3){for(var _4 in _3){_2[_4]=_3[_4];}return _2;};Object.inspect=function(_5){try{if(_5==undefined){return "undefined";}if(_5==null){return "null";}return _5.inspect?_5.inspect():_5.toString();}catch(e){if(e instanceof RangeError){return "...";}throw e;}};Function.prototype.bind=function(){var _6=this,args=$A(arguments),object=args.shift();return function(){return _6.apply(object,args.concat($A(arguments)));};};Function.prototype.bindAsEventListener=function(_7){var _8=this;return function(_9){return _8.call(_7,_9||window.event);};};Object.extend(Number.prototype,{toColorPart:function(){var _a=this.toString(16);if(this<16){return "0"+_a;}return _a;},succ:function(){return this+1;},times:function(_b){$R(0,this,true).each(_b);return this;}});var Try={these:function(){var _c;for(var i=0;i<arguments.length;i++){var _e=arguments[i];try{_c=_e();break;}catch(e){}}return _c;}};var PeriodicalExecuter=Class.create();PeriodicalExecuter.prototype={initialize:function(_f,_10){this.callback=_f;this.frequency=_10;this.currentlyExecuting=false;this.registerCallback();},registerCallback:function(){setInterval(this.onTimerEvent.bind(this),this.frequency*1000);},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyExecuting=true;this.callback();}finally{this.currentlyExecuting=false;}}}};Object.extend(String.prototype,{gsub:function(_11,_12){var _13="",source=this,match;_12=arguments.callee.prepareReplacement(_12);while(source.length>0){if(match=source.match(_11)){_13+=source.slice(0,match.index);_13+=(_12(match)||"").toString();source=source.slice(match.index+match[0].length);}else{_13+=source,source="";}}return _13;},sub:function(_14,_15,_16){_15=this.gsub.prepareReplacement(_15);_16=_16===undefined?1:_16;return this.gsub(_14,function(_17){if(--_16<0){return _17[0];}return _15(_17);});},scan:function(_18,_19){this.gsub(_18,_19);return this;},truncate:function(_1a,_1b){_1a=_1a||30;_1b=_1b===undefined?"...":_1b;return this.length>_1a?this.slice(0,_1a-_1b.length)+_1b:this;},strip:function(){return this.replace(/^\s+/,"").replace(/\s+$/,"");},stripTags:function(){return this.replace(/<\/?[^>]+>/gi,"");},stripScripts:function(){return this.replace(new RegExp(Prototype.ScriptFragment,"img"),"");},extractScripts:function(){var _1c=new RegExp(Prototype.ScriptFragment,"img");var _1d=new RegExp(Prototype.ScriptFragment,"im");return (this.match(_1c)||[]).map(function(_1e){return (_1e.match(_1d)||["",""])[1];});},evalScripts:function(){return this.extractScripts().map(function(_1f){return eval(_1f);});},escapeHTML:function(){var div=document.createElement("div");var _21=document.createTextNode(this);div.appendChild(_21);return div.innerHTML;},unescapeHTML:function(){var div=document.createElement("div");div.innerHTML=this.stripTags();return div.childNodes[0]?div.childNodes[0].nodeValue:"";},toQueryParams:function(){var _23=this.match(/^\??(.*)$/)[1].split("&");return _23.inject({},function(_24,_25){var _26=_25.split("=");_24[_26[0]]=_26[1];return _24;});},toArray:function(){return this.split("");},camelize:function(){var _27=this.split("-");if(_27.length==1){return _27[0];}var _28=this.indexOf("-")==0?_27[0].charAt(0).toUpperCase()+_27[0].substring(1):_27[0];for(var i=1,len=_27.length;i<len;i++){var s=_27[i];_28+=s.charAt(0).toUpperCase()+s.substring(1);}return _28;},inspect:function(){return "'"+this.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'";}});String.prototype.gsub.prepareReplacement=function(_2b){if(typeof _2b=="function"){return _2b;}var _2c=new Template(_2b);return function(_2d){return _2c.evaluate(_2d);};};String.prototype.parseQuery=String.prototype.toQueryParams;var Template=Class.create();Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/;Template.prototype={initialize:function(_2e,_2f){this.template=_2e.toString();this.pattern=_2f||Template.Pattern;},evaluate:function(_30){return this.template.gsub(this.pattern,function(_31){var _32=_31[1];if(_32=="\\"){return _31[2];}return _32+(_30[_31[3]]||"").toString();});}};var $break=new Object();var $continue=new Object();var Enumerable={each:function(_33){var _34=0;try{this._each(function(_35){try{_33(_35,_34++);}catch(e){if(e!=$continue){throw e;}}});}catch(e){if(e!=$break){throw e;}}},all:function(_36){var _37=true;this.each(function(_38,_39){_37=_37&&!!(_36||Prototype.K)(_38,_39);if(!_37){throw $break;}});return _37;},any:function(_3a){var _3b=true;this.each(function(_3c,_3d){if(_3b=!!(_3a||Prototype.K)(_3c,_3d)){throw $break;}});return _3b;},collect:function(_3e){var _3f=[];this.each(function(_40,_41){_3f.push(_3e(_40,_41));});return _3f;},detect:function(_42){var _43;this.each(function(_44,_45){if(_42(_44,_45)){_43=_44;throw $break;}});return _43;},findAll:function(_46){var _47=[];this.each(function(_48,_49){if(_46(_48,_49)){_47.push(_48);}});return _47;},grep:function(_4a,_4b){var _4c=[];this.each(function(_4d,_4e){var _4f=_4d.toString();if(_4f.match(_4a)){_4c.push((_4b||Prototype.K)(_4d,_4e));}});return _4c;},include:function(_50){var _51=false;this.each(function(_52){if(_52==_50){_51=true;throw $break;}});return _51;},inject:function(_53,_54){this.each(function(_55,_56){_53=_54(_53,_55,_56);});return _53;},invoke:function(_57){var _58=$A(arguments).slice(1);return this.collect(function(_59){return _59[_57].apply(_59,_58);});},max:function(_5a){var _5b;this.each(function(_5c,_5d){_5c=(_5a||Prototype.K)(_5c,_5d);if(_5b==undefined||_5c>=_5b){_5b=_5c;}});return _5b;},min:function(_5e){var _5f;this.each(function(_60,_61){_60=(_5e||Prototype.K)(_60,_61);if(_5f==undefined||_60<_5f){_5f=_60;}});return _5f;},partition:function(_62){var _63=[],falses=[];this.each(function(_64,_65){((_62||Prototype.K)(_64,_65)?_63:falses).push(_64);});return [_63,falses];},pluck:function(_66){var _67=[];this.each(function(_68,_69){_67.push(_68[_66]);});return _67;},reject:function(_6a){var _6b=[];this.each(function(_6c,_6d){if(!_6a(_6c,_6d)){_6b.push(_6c);}});return _6b;},sortBy:function(_6e){return this.collect(function(_6f,_70){return {value:_6f,criteria:_6e(_6f,_70)};}).sort(function(_71,_72){var a=_71.criteria,b=_72.criteria;return a<b?-1:a>b?1:0;}).pluck("value");},toArray:function(){return this.collect(Prototype.K);},zip:function(){var _74=Prototype.K,args=$A(arguments);if(typeof args.last()=="function"){_74=args.pop();}var _75=[this].concat(args).map($A);return this.map(function(_76,_77){return _74(_75.pluck(_77));});},inspect:function(){return "#<Enumerable:"+this.toArray().inspect()+">";}};Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray});var $A=Array.from=function(_78){if(!_78){return [];}if(_78.toArray){return _78.toArray();}else{var _79=[];for(var i=0;i<_78.length;i++){_79.push(_78[i]);}return _79;}};Object.extend(Array.prototype,Enumerable);if(!Array.prototype._reverse){Array.prototype._reverse=Array.prototype.reverse;}Object.extend(Array.prototype,{_each:function(_7b){for(var i=0;i<this.length;i++){_7b(this[i]);}},clear:function(){this.length=0;return this;},first:function(){return this[0];},last:function(){return this[this.length-1];},compact:function(){return this.select(function(_7d){return _7d!=undefined||_7d!=null;});},flatten:function(){return this.inject([],function(_7e,_7f){return _7e.concat(_7f&&_7f.constructor==Array?_7f.flatten():[_7f]);});},without:function(){var _80=$A(arguments);return this.select(function(_81){return !_80.include(_81);});},indexOf:function(_82){for(var i=0;i<this.length;i++){if(this[i]==_82){return i;}}return -1;},reverse:function(_84){return (_84!==false?this:this.toArray())._reverse();},inspect:function(){return "["+this.map(Object.inspect).join(", ")+"]";}});var Hash={_each:function(_85){for(var key in this){var _87=this[key];if(typeof _87=="function"){continue;}var _88=[key,_87];_88.key=key;_88.value=_87;_85(_88);}},keys:function(){return this.pluck("key");},values:function(){return this.pluck("value");},merge:function(_89){return $H(_89).inject($H(this),function(_8a,_8b){_8a[_8b.key]=_8b.value;return _8a;});},toQueryString:function(){return this.map(function(_8c){return _8c.map(encodeURIComponent).join("=");}).join("&");},inspect:function(){return "#<Hash:{"+this.map(function(_8d){return _8d.map(Object.inspect).join(": ");}).join(", ")+"}>";}};function $H(_8e){var _8f=Object.extend({},_8e||{});Object.extend(_8f,Enumerable);Object.extend(_8f,Hash);return _8f;}ObjectRange=Class.create();Object.extend(ObjectRange.prototype,Enumerable);Object.extend(ObjectRange.prototype,{initialize:function(_90,end,_92){this.start=_90;this.end=end;this.exclusive=_92;},_each:function(_93){var _94=this.start;do{_93(_94);_94=_94.succ();}while(this.include(_94));},include:function(_95){if(_95<this.start){return false;}if(this.exclusive){return _95<this.end;}return _95<=this.end;}});var $R=function(_96,end,_98){return new ObjectRange(_96,end,_98);};var Ajax={getTransport:function(){return Try.these(function(){return new XMLHttpRequest();},function(){return new ActiveXObject("Msxml2.XMLHTTP");},function(){return new ActiveXObject("Microsoft.XMLHTTP");})||false;},activeRequestCount:0};Ajax.Responders={responders:[],_each:function(_99){this.responders._each(_99);},register:function(_9a){if(!this.include(_9a)){this.responders.push(_9a);}},unregister:function(_9b){this.responders=this.responders.without(_9b);},dispatch:function(_9c,_9d,_9e,_9f){this.each(function(_a0){if(_a0[_9c]&&typeof _a0[_9c]=="function"){try{_a0[_9c].apply(_a0,[_9d,_9e,_9f]);}catch(e){}}});}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++;},onComplete:function(){Ajax.activeRequestCount--;}});Ajax.Base=function(){};Ajax.Base.prototype={setOptions:function(_a1){this.options={method:"post",asynchronous:true,contentType:"application/x-www-form-urlencoded",parameters:""};Object.extend(this.options,_a1||{});},responseIsSuccess:function(){return this.transport.status==undefined||this.transport.status==0||(this.transport.status>=200&&this.transport.status<300);},responseIsFailure:function(){return !this.responseIsSuccess();}};Ajax.Request=Class.create();Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];Ajax.Request.prototype=Object.extend(new Ajax.Base(),{initialize:function(url,_a3){this.transport=Ajax.getTransport();this.setOptions(_a3);this.request(url);},request:function(url){var _a5=this.options.parameters||"";if(_a5.length>0){_a5+="&_=";}try{this.url=url;if(this.options.method=="get"&&_a5.length>0){this.url+=(this.url.match(/\?/)?"&":"?")+_a5;}Ajax.Responders.dispatch("onCreate",this,this.transport);this.transport.open(this.options.method,this.url,this.options.asynchronous);if(this.options.asynchronous){this.transport.onreadystatechange=this.onStateChange.bind(this);setTimeout((function(){this.respondToReadyState(1);}).bind(this),10);}this.setRequestHeaders();var _a6=this.options.postBody?this.options.postBody:_a5;this.transport.send(this.options.method=="post"?_a6:null);}catch(e){this.dispatchException(e);}},setRequestHeaders:function(){var _a7=["X-Requested-With","XMLHttpRequest","X-Prototype-Version",Prototype.Version,"Accept","text/javascript, text/html, application/xml, text/xml, */*"];if(this.options.method=="post"){_a7.push("Content-type",this.options.contentType);if(this.transport.overrideMimeType){_a7.push("Connection","close");}}if(this.options.requestHeaders){_a7.push.apply(_a7,this.options.requestHeaders);}for(var i=0;i<_a7.length;i+=2){this.transport.setRequestHeader(_a7[i],_a7[i+1]);}},onStateChange:function(){var _a9=this.transport.readyState;if(_a9!=1){this.respondToReadyState(this.transport.readyState);}},header:function(_aa){try{return this.transport.getResponseHeader(_aa);}catch(e){}},evalJSON:function(){try{return eval("("+this.header("X-JSON")+")");}catch(e){}},evalResponse:function(){try{return eval(this.transport.responseText);}catch(e){this.dispatchException(e);}},respondToReadyState:function(_ab){var _ac=Ajax.Request.Events[_ab];var _ad=this.transport,json=this.evalJSON();if(_ac=="Complete"){try{(this.options["on"+this.transport.status]||this.options["on"+(this.responseIsSuccess()?"Success":"Failure")]||Prototype.emptyFunction)(_ad,json);}catch(e){this.dispatchException(e);}if((this.header("Content-type")||"").match(/^text\/javascript/i)){this.evalResponse();}}try{(this.options["on"+_ac]||Prototype.emptyFunction)(_ad,json);Ajax.Responders.dispatch("on"+_ac,this,_ad,json);}catch(e){this.dispatchException(e);}if(_ac=="Complete"){this.transport.onreadystatechange=Prototype.emptyFunction;}},dispatchException:function(_ae){(this.options.onException||Prototype.emptyFunction)(this,_ae);Ajax.Responders.dispatch("onException",this,_ae);}});Ajax.Updater=Class.create();Object.extend(Object.extend(Ajax.Updater.prototype,Ajax.Request.prototype),{initialize:function(_af,url,_b1){this.containers={success:_af.success?$(_af.success):$(_af),failure:_af.failure?$(_af.failure):(_af.success?null:$(_af))};this.transport=Ajax.getTransport();this.setOptions(_b1);var _b2=this.options.onComplete||Prototype.emptyFunction;this.options.onComplete=(function(_b3,_b4){this.updateContent();_b2(_b3,_b4);}).bind(this);this.request(url);},updateContent:function(){var _b5=this.responseIsSuccess()?this.containers.success:this.containers.failure;var _b6=this.transport.responseText;if(!this.options.evalScripts){_b6=_b6.stripScripts();}if(_b5){if(this.options.insertion){new this.options.insertion(_b5,_b6);}else{Element.update(_b5,_b6);}}if(this.responseIsSuccess()){if(this.onComplete){setTimeout(this.onComplete.bind(this),10);}}}});Ajax.PeriodicalUpdater=Class.create();Ajax.PeriodicalUpdater.prototype=Object.extend(new Ajax.Base(),{initialize:function(_b7,url,_b9){this.setOptions(_b9);this.onComplete=this.options.onComplete;this.frequency=(this.options.frequency||2);this.decay=(this.options.decay||1);this.updater={};this.container=_b7;this.url=url;this.start();},start:function(){this.options.onComplete=this.updateComplete.bind(this);this.onTimerEvent();},stop:function(){this.updater.onComplete=undefined;clearTimeout(this.timer);(this.onComplete||Prototype.emptyFunction).apply(this,arguments);},updateComplete:function(_ba){if(this.options.decay){this.decay=(_ba.responseText==this.lastText?this.decay*this.options.decay:1);this.lastText=_ba.responseText;}this.timer=setTimeout(this.onTimerEvent.bind(this),this.decay*this.frequency*1000);},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options);}});function $(){var _bb=[],element;for(var i=0;i<arguments.length;i++){element=arguments[i];if(typeof element=="string"){element=document.getElementById(element);}_bb.push(Element.extend(element));}return _bb.length<2?_bb[0]:_bb;}document.getElementsByClassName=function(_bd,_be){var _bf=($(_be)||document.body).getElementsByTagName("*");return $A(_bf).inject([],function(_c0,_c1){if(_c1.className.match(new RegExp("(^|\\s)"+_bd+"(\\s|$)"))){_c0.push(Element.extend(_c1));}return _c0;});};if(!window.Element){var Element=new Object();}Element.extend=function(_c2){if(!_c2){return;}if(_nativeExtensions){return _c2;}if(!_c2._extended&&_c2.tagName&&_c2!=window){var _c3=Element.Methods,cache=Element.extend.cache;for(property in _c3){var _c4=_c3[property];if(typeof _c4=="function"){_c2[property]=cache.findOrStore(_c4);}}}_c2._extended=true;return _c2;};Element.extend.cache={findOrStore:function(_c5){return this[_c5]=this[_c5]||function(){return _c5.apply(null,[this].concat($A(arguments)));};}};Element.Methods={visible:function(_c6){return $(_c6).style.display!="none";},toggle:function(){for(var i=0;i<arguments.length;i++){var _c8=$(arguments[i]);Element[Element.visible(_c8)?"hide":"show"](_c8);}},hide:function(){for(var i=0;i<arguments.length;i++){var _ca=$(arguments[i]);_ca.style.display="none";}},show:function(){for(var i=0;i<arguments.length;i++){var _cc=$(arguments[i]);_cc.style.display="";}},remove:function(_cd){_cd=$(_cd);_cd.parentNode.removeChild(_cd);},update:function(_ce,_cf){$(_ce).innerHTML=_cf.stripScripts();setTimeout(function(){_cf.evalScripts();},10);},replace:function(_d0,_d1){_d0=$(_d0);if(_d0.outerHTML){_d0.outerHTML=_d1.stripScripts();}else{var _d2=_d0.ownerDocument.createRange();_d2.selectNodeContents(_d0);_d0.parentNode.replaceChild(_d2.createContextualFragment(_d1.stripScripts()),_d0);}setTimeout(function(){_d1.evalScripts();},10);},getHeight:function(_d3){_d3=$(_d3);return _d3.offsetHeight;},classNames:function(_d4){return new Element.ClassNames(_d4);},hasClassName:function(_d5,_d6){if(!(_d5=$(_d5))){return;}return Element.classNames(_d5).include(_d6);},addClassName:function(_d7,_d8){if(!(_d7=$(_d7))){return;}return Element.classNames(_d7).add(_d8);},removeClassName:function(_d9,_da){if(!(_d9=$(_d9))){return;}return Element.classNames(_d9).remove(_da);},cleanWhitespace:function(_db){_db=$(_db);for(var i=0;i<_db.childNodes.length;i++){var _dd=_db.childNodes[i];if(_dd.nodeType==3&&!/\S/.test(_dd.nodeValue)){Element.remove(_dd);}}},empty:function(_de){return $(_de).innerHTML.match(/^\s*$/);},childOf:function(_df,_e0){_df=$(_df),_e0=$(_e0);while(_df=_df.parentNode){if(_df==_e0){return true;}}return false;},scrollTo:function(_e1){_e1=$(_e1);var x=_e1.x?_e1.x:_e1.offsetLeft,y=_e1.y?_e1.y:_e1.offsetTop;window.scrollTo(x,y);},getStyle:function(_e3,_e4){_e3=$(_e3);var _e5=_e3.style[_e4.camelize()];if(!_e5){if(document.defaultView&&document.defaultView.getComputedStyle){var css=document.defaultView.getComputedStyle(_e3,null);_e5=css?css.getPropertyValue(_e4):null;}else{if(_e3.currentStyle){_e5=_e3.currentStyle[_e4.camelize()];}}}if(window.opera&&["left","top","right","bottom"].include(_e4)){if(Element.getStyle(_e3,"position")=="static"){_e5="auto";}}return _e5=="auto"?null:_e5;},setStyle:function(_e7,_e8){_e7=$(_e7);for(var _e9 in _e8){_e7.style[_e9.camelize()]=_e8[_e9];}},getDimensions:function(_ea){_ea=$(_ea);if(Element.getStyle(_ea,"display")!="none"){return {width:_ea.offsetWidth,height:_ea.offsetHeight};}var els=_ea.style;var _ec=els.visibility;var _ed=els.position;els.visibility="hidden";els.position="absolute";els.display="";var _ee=_ea.clientWidth;var _ef=_ea.clientHeight;els.display="none";els.position=_ed;els.visibility=_ec;return {width:_ee,height:_ef};},makePositioned:function(_f0){_f0=$(_f0);var pos=Element.getStyle(_f0,"position");if(pos=="static"||!pos){_f0._madePositioned=true;_f0.style.position="relative";if(window.opera){_f0.style.top=0;_f0.style.left=0;}}},undoPositioned:function(_f2){_f2=$(_f2);if(_f2._madePositioned){_f2._madePositioned=undefined;_f2.style.position=_f2.style.top=_f2.style.left=_f2.style.bottom=_f2.style.right="";}},makeClipping:function(_f3){_f3=$(_f3);if(_f3._overflow){return;}_f3._overflow=_f3.style.overflow;if((Element.getStyle(_f3,"overflow")||"visible")!="hidden"){_f3.style.overflow="hidden";}},undoClipping:function(_f4){_f4=$(_f4);if(_f4._overflow){return;}_f4.style.overflow=_f4._overflow;_f4._overflow=undefined;}};Object.extend(Element,Element.Methods);var _nativeExtensions=false;if(!HTMLElement&&/Konqueror|Safari|KHTML/.test(navigator.userAgent)){var HTMLElement={};HTMLElement.prototype=document.createElement("div").__proto__;}Element.addMethods=function(_f5){Object.extend(Element.Methods,_f5||{});if(typeof HTMLElement!="undefined"){var _f6=Element.Methods,cache=Element.extend.cache;for(property in _f6){var _f7=_f6[property];if(typeof _f7=="function"){HTMLElement.prototype[property]=cache.findOrStore(_f7);}}_nativeExtensions=true;}};Element.addMethods();var Toggle=new Object();Toggle.display=Element.toggle;Abstract.Insertion=function(_f8){this.adjacency=_f8;};Abstract.Insertion.prototype={initialize:function(_f9,_fa){this.element=$(_f9);this.content=_fa.stripScripts();if(this.adjacency&&this.element.insertAdjacentHTML){try{this.element.insertAdjacentHTML(this.adjacency,this.content);}catch(e){var _fb=this.element.tagName.toLowerCase();if(_fb=="tbody"||_fb=="tr"){this.insertContent(this.contentFromAnonymousTable());}else{throw e;}}}else{this.range=this.element.ownerDocument.createRange();if(this.initializeRange){this.initializeRange();}this.insertContent([this.range.createContextualFragment(this.content)]);}setTimeout(function(){_fa.evalScripts();},10);},contentFromAnonymousTable:function(){var div=document.createElement("div");div.innerHTML="<table><tbody>"+this.content+"</tbody></table>";return $A(div.childNodes[0].childNodes[0].childNodes);}};var Insertion=new Object();Insertion.Before=Class.create();Insertion.Before.prototype=Object.extend(new Abstract.Insertion("beforeBegin"),{initializeRange:function(){this.range.setStartBefore(this.element);},insertContent:function(_fd){_fd.each((function(_fe){this.element.parentNode.insertBefore(_fe,this.element);}).bind(this));}});Insertion.Top=Class.create();Insertion.Top.prototype=Object.extend(new Abstract.Insertion("afterBegin"),{initializeRange:function(){this.range.selectNodeContents(this.element);this.range.collapse(true);},insertContent:function(_ff){_ff.reverse(false).each((function(_100){this.element.insertBefore(_100,this.element.firstChild);}).bind(this));}});Insertion.Bottom=Class.create();Insertion.Bottom.prototype=Object.extend(new Abstract.Insertion("beforeEnd"),{initializeRange:function(){this.range.selectNodeContents(this.element);this.range.collapse(this.element);},insertContent:function(_101){_101.each((function(_102){this.element.appendChild(_102);}).bind(this));}});Insertion.After=Class.create();Insertion.After.prototype=Object.extend(new Abstract.Insertion("afterEnd"),{initializeRange:function(){this.range.setStartAfter(this.element);},insertContent:function(_103){_103.each((function(_104){this.element.parentNode.insertBefore(_104,this.element.nextSibling);}).bind(this));}});Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(_105){this.element=$(_105);},_each:function(_106){this.element.className.split(/\s+/).select(function(name){return name.length>0;})._each(_106);},set:function(_108){this.element.className=_108;},add:function(_109){if(this.include(_109)){return;}this.set(this.toArray().concat(_109).join(" "));},remove:function(_10a){if(!this.include(_10a)){return;}this.set(this.select(function(_10b){return _10b!=_10a;}).join(" "));},toString:function(){return this.toArray().join(" ");}};Object.extend(Element.ClassNames.prototype,Enumerable);var Selector=Class.create();Selector.prototype={initialize:function(_10c){this.params={classNames:[]};this.expression=_10c.toString().strip();this.parseExpression();this.compileMatcher();},parseExpression:function(){function abort(_10d){throw "Parse error in selector: "+_10d;}if(this.expression==""){abort("empty expression");}var _10e=this.params,expr=this.expression,match,modifier,clause,rest;while(match=expr.match(/^(.*)\[([a-z0-9_:-]+?)(?:([~\|!]?=)(?:"([^"]*)"|([^\]\s]*)))?\]$/i)){_10e.attributes=_10e.attributes||[];_10e.attributes.push({name:match[2],operator:match[3],value:match[4]||match[5]||""});expr=match[1];}if(expr=="*"){return this.params.wildcard=true;}while(match=expr.match(/^([^a-z0-9_-])?([a-z0-9_-]+)(.*)/i)){modifier=match[1],clause=match[2],rest=match[3];switch(modifier){case "#":_10e.id=clause;break;case ".":_10e.classNames.push(clause);break;case "":case undefined:_10e.tagName=clause.toUpperCase();break;default:abort(expr.inspect());}expr=rest;}if(expr.length>0){abort(expr.inspect());}},buildMatchExpression:function(){var _10f=this.params,conditions=[],clause;if(_10f.wildcard){conditions.push("true");}if(clause=_10f.id){conditions.push("element.id == "+clause.inspect());}if(clause=_10f.tagName){conditions.push("element.tagName.toUpperCase() == "+clause.inspect());}if((clause=_10f.classNames).length>0){for(var i=0;i<clause.length;i++){conditions.push("Element.hasClassName(element, "+clause[i].inspect()+")");}}if(clause=_10f.attributes){clause.each(function(_111){var _112="element.getAttribute("+_111.name.inspect()+")";var _113=function(_114){return _112+" && "+_112+".split("+_114.inspect()+")";};switch(_111.operator){case "=":conditions.push(_112+" == "+_111.value.inspect());break;case "~=":conditions.push(_113(" ")+".include("+_111.value.inspect()+")");break;case "|=":conditions.push(_113("-")+".first().toUpperCase() == "+_111.value.toUpperCase().inspect());break;case "!=":conditions.push(_112+" != "+_111.value.inspect());break;case "":case undefined:conditions.push(_112+" != null");break;default:throw "Unknown operator "+_111.operator+" in selector";}});}return conditions.join(" && ");},compileMatcher:function(){this.match=new Function("element","if (!element.tagName) return false; return "+this.buildMatchExpression());},findElements:function(_115){var _116;if(_116=$(this.params.id)){if(this.match(_116)){if(!_115||Element.childOf(_116,_115)){return [_116];}}}_115=(_115||document).getElementsByTagName(this.params.tagName||"*");var _117=[];for(var i=0;i<_115.length;i++){if(this.match(_116=_115[i])){_117.push(Element.extend(_116));}}return _117;},toString:function(){return this.expression;}};function $$(){return $A(arguments).map(function(_119){return _119.strip().split(/\s+/).inject([null],function(_11a,expr){var _11c=new Selector(expr);return _11a.map(_11c.findElements.bind(_11c)).flatten();});}).flatten();}var Field={clear:function(){for(var i=0;i<arguments.length;i++){$(arguments[i]).value="";}},focus:function(_11e){$(_11e).focus();},present:function(){for(var i=0;i<arguments.length;i++){if($(arguments[i]).value==""){return false;}}return true;},select:function(_120){$(_120).select();},activate:function(_121){_121=$(_121);_121.focus();if(_121.select){_121.select();}}};var Form={serialize:function(form){var _123=Form.getElements($(form));var _124=new Array();for(var i=0;i<_123.length;i++){var _126=Form.Element.serialize(_123[i]);if(_126){_124.push(_126);}}return _124.join("&");},getElements:function(form){form=$(form);var _128=new Array();for(var _129 in Form.Element.Serializers){var _12a=form.getElementsByTagName(_129);for(var j=0;j<_12a.length;j++){_128.push(_12a[j]);}}return _128;},getInputs:function(form,_12d,name){form=$(form);var _12f=form.getElementsByTagName("input");if(!_12d&&!name){return _12f;}var _130=new Array();for(var i=0;i<_12f.length;i++){var _132=_12f[i];if((_12d&&_132.type!=_12d)||(name&&_132.name!=name)){continue;}_130.push(_132);}return _130;},disable:function(form){var _134=Form.getElements(form);for(var i=0;i<_134.length;i++){var _136=_134[i];_136.blur();_136.disabled="true";}},enable:function(form){var _138=Form.getElements(form);for(var i=0;i<_138.length;i++){var _13a=_138[i];_13a.disabled="";}},findFirstElement:function(form){return Form.getElements(form).find(function(_13c){return _13c.type!="hidden"&&!_13c.disabled&&["input","select","textarea"].include(_13c.tagName.toLowerCase());});},focusFirstElement:function(form){Field.activate(Form.findFirstElement(form));},reset:function(form){$(form).reset();}};Form.Element={serialize:function(_13f){_13f=$(_13f);var _140=_13f.tagName.toLowerCase();var _141=Form.Element.Serializers[_140](_13f);if(_141){var key=encodeURIComponent(_141[0]);if(key.length==0){return;}if(_141[1].constructor!=Array){_141[1]=[_141[1]];}return _141[1].map(function(_143){return key+"="+encodeURIComponent(_143);}).join("&");}},getValue:function(_144){_144=$(_144);var _145=_144.tagName.toLowerCase();var _146=Form.Element.Serializers[_145](_144);if(_146){return _146[1];}}};Form.Element.Serializers={input:function(_147){switch(_147.type.toLowerCase()){case "submit":case "hidden":case "password":case "text":return Form.Element.Serializers.textarea(_147);case "checkbox":case "radio":return Form.Element.Serializers.inputSelector(_147);}return false;},inputSelector:function(_148){if(_148.checked){return [_148.name,_148.value];}},textarea:function(_149){return [_149.name,_149.value];},select:function(_14a){return Form.Element.Serializers[_14a.type=="select-one"?"selectOne":"selectMany"](_14a);},selectOne:function(_14b){var _14c="",opt,index=_14b.selectedIndex;if(index>=0){opt=_14b.options[index];_14c=opt.value||opt.text;}return [_14b.name,_14c];},selectMany:function(_14d){var _14e=[];for(var i=0;i<_14d.length;i++){var opt=_14d.options[i];if(opt.selected){_14e.push(opt.value||opt.text);}}return [_14d.name,_14e];}};var $F=Form.Element.getValue;Abstract.TimedObserver=function(){};Abstract.TimedObserver.prototype={initialize:function(_151,_152,_153){this.frequency=_152;this.element=$(_151);this.callback=_153;this.lastValue=this.getValue();this.registerCallback();},registerCallback:function(){setInterval(this.onTimerEvent.bind(this),this.frequency*1000);},onTimerEvent:function(){var _154=this.getValue();if(this.lastValue!=_154){this.callback(this.element,_154);this.lastValue=_154;}}};Form.Element.Observer=Class.create();Form.Element.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Form.Element.getValue(this.element);}});Form.Observer=Class.create();Form.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Form.serialize(this.element);}});Abstract.EventObserver=function(){};Abstract.EventObserver.prototype={initialize:function(_155,_156){this.element=$(_155);this.callback=_156;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase()=="form"){this.registerFormCallbacks();}else{this.registerCallback(this.element);}},onElementEvent:function(){var _157=this.getValue();if(this.lastValue!=_157){this.callback(this.element,_157);this.lastValue=_157;}},registerFormCallbacks:function(){var _158=Form.getElements(this.element);for(var i=0;i<_158.length;i++){this.registerCallback(_158[i]);}},registerCallback:function(_15a){if(_15a.type){switch(_15a.type.toLowerCase()){case "checkbox":case "radio":Event.observe(_15a,"click",this.onElementEvent.bind(this));break;case "password":case "text":case "textarea":case "select-one":case "select-multiple":Event.observe(_15a,"change",this.onElementEvent.bind(this));break;}}}};Form.Element.EventObserver=Class.create();Form.Element.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){return Form.Element.getValue(this.element);}});Form.EventObserver=Class.create();Form.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){return Form.serialize(this.element);}});if(!window.Event){var Event=new Object();}Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(_15b){return _15b.target||_15b.srcElement;},isLeftClick:function(_15c){return (((_15c.which)&&(_15c.which==1))||((_15c.button)&&(_15c.button==1)));},pointerX:function(_15d){return _15d.pageX||(_15d.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));},pointerY:function(_15e){return _15e.pageY||(_15e.clientY+(document.documentElement.scrollTop||document.body.scrollTop));},stop:function(_15f){if(_15f.preventDefault){_15f.preventDefault();_15f.stopPropagation();}else{_15f.returnValue=false;_15f.cancelBubble=true;}},findElement:function(_160,_161){var _162=Event.element(_160);while(_162.parentNode&&(!_162.tagName||(_162.tagName.toUpperCase()!=_161.toUpperCase()))){_162=_162.parentNode;}return _162;},observers:false,_observeAndCache:function(_163,name,_165,_166){if(!this.observers){this.observers=[];}if(_163.addEventListener){this.observers.push([_163,name,_165,_166]);_163.addEventListener(name,_165,_166);}else{if(_163.attachEvent){this.observers.push([_163,name,_165,_166]);_163.attachEvent("on"+name,_165);}}},unloadCache:function(){if(!Event.observers){return;}for(var i=0;i<Event.observers.length;i++){Event.stopObserving.apply(this,Event.observers[i]);Event.observers[i][0]=null;}Event.observers=false;},observe:function(_168,name,_16a,_16b){var _16c=$(_16c);_16b=_16b||false;if(name=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||_16c.attachEvent)){name="keydown";}this._observeAndCache(_16c,name,_16a,_16b);},stopObserving:function(_16d,name,_16f,_170){var _171=$(_171);_170=_170||false;if(name=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||_171.detachEvent)){name="keydown";}if(_171.removeEventListener){_171.removeEventListener(name,_16f,_170);}else{if(_171.detachEvent){try{_171.detachEvent("on"+name,_16f);}catch(e){}}}}});if(navigator.appVersion.match(/\bMSIE\b/)){Event.observe(window,"unload",Event.unloadCache,false);}var Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;},realOffset:function(_172){var _173=0,valueL=0;do{_173+=_172.scrollTop||0;valueL+=_172.scrollLeft||0;_172=_172.parentNode;}while(_172);return [valueL,_173];},cumulativeOffset:function(_174){var _175=0,valueL=0;do{_175+=_174.offsetTop||0;valueL+=_174.offsetLeft||0;_174=_174.offsetParent;}while(_174);return [valueL,_175];},positionedOffset:function(_176){var _177=0,valueL=0;do{_177+=_176.offsetTop||0;valueL+=_176.offsetLeft||0;_176=_176.offsetParent;if(_176){p=Element.getStyle(_176,"position");if(p=="relative"||p=="absolute"){break;}}}while(_176);return [valueL,_177];},offsetParent:function(_178){if(_178.offsetParent){return _178.offsetParent;}if(_178==document.body){return _178;}while((_178=_178.parentNode)&&_178!=document.body){if(Element.getStyle(_178,"position")!="static"){return _178;}}return document.body;},within:function(_179,x,y){if(this.includeScrollOffsets){return this.withinIncludingScrolloffsets(_179,x,y);}this.xcomp=x;this.ycomp=y;this.offset=this.cumulativeOffset(_179);return (y>=this.offset[1]&&y<this.offset[1]+_179.offsetHeight&&x>=this.offset[0]&&x<this.offset[0]+_179.offsetWidth);},withinIncludingScrolloffsets:function(_17c,x,y){var _17f=this.realOffset(_17c);this.xcomp=x+_17f[0]-this.deltaX;this.ycomp=y+_17f[1]-this.deltaY;this.offset=this.cumulativeOffset(_17c);return (this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+_17c.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+_17c.offsetWidth);},overlap:function(mode,_181){if(!mode){return 0;}if(mode=="vertical"){return ((this.offset[1]+_181.offsetHeight)-this.ycomp)/_181.offsetHeight;}if(mode=="horizontal"){return ((this.offset[0]+_181.offsetWidth)-this.xcomp)/_181.offsetWidth;}},clone:function(_182,_183){_182=$(_182);_183=$(_183);_183.style.position="absolute";var _184=this.cumulativeOffset(_182);_183.style.top=_184[1]+"px";_183.style.left=_184[0]+"px";_183.style.width=_182.offsetWidth+"px";_183.style.height=_182.offsetHeight+"px";},page:function(_185){var _186=0,valueL=0;var _187=_185;do{_186+=_187.offsetTop||0;valueL+=_187.offsetLeft||0;if(_187.offsetParent==document.body){if(Element.getStyle(_187,"position")=="absolute"){break;}}}while(_187=_187.offsetParent);_187=_185;do{_186-=_187.scrollTop||0;valueL-=_187.scrollLeft||0;}while(_187=_187.parentNode);return [valueL,_186];},clone:function(_188,_189){var _18a=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});_188=$(_188);var p=Position.page(_188);_189=$(_189);var _18c=[0,0];var _18d=null;if(Element.getStyle(_189,"position")=="absolute"){_18d=Position.offsetParent(_189);_18c=Position.page(_18d);}if(_18d==document.body){_18c[0]-=document.body.offsetLeft;_18c[1]-=document.body.offsetTop;}if(_18a.setLeft){_189.style.left=(p[0]-_18c[0]+_18a.offsetLeft)+"px";}if(_18a.setTop){_189.style.top=(p[1]-_18c[1]+_18a.offsetTop)+"px";}if(_18a.setWidth){_189.style.width=_188.offsetWidth+"px";}if(_18a.setHeight){_189.style.height=_188.offsetHeight+"px";}},absolutize:function(_18e){_18e=$(_18e);if(_18e.style.position=="absolute"){return;}Position.prepare();var _18f=Position.positionedOffset(_18e);var top=_18f[1];var left=_18f[0];var _192=_18e.clientWidth;var _193=_18e.clientHeight;_18e._originalLeft=left-parseFloat(_18e.style.left||0);_18e._originalTop=top-parseFloat(_18e.style.top||0);_18e._originalWidth=_18e.style.width;_18e._originalHeight=_18e.style.height;_18e.style.position="absolute";_18e.style.top=top+"px";_18e.style.left=left+"px";_18e.style.width=_192+"px";_18e.style.height=_193+"px";},relativize:function(_194){_194=$(_194);if(_194.style.position=="relative"){return;}Position.prepare();_194.style.position="relative";var top=parseFloat(_194.style.top||0)-(_194._originalTop||0);var left=parseFloat(_194.style.left||0)-(_194._originalLeft||0);_194.style.top=top+"px";_194.style.left=left+"px";_194.style.height=_194._originalHeight;_194.style.width=_194._originalWidth;}};if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){Position.cumulativeOffset=function(_197){var _198=0,valueL=0;do{_198+=_197.offsetTop||0;valueL+=_197.offsetLeft||0;if(_197.offsetParent==document.body){if(Element.getStyle(_197,"position")=="absolute"){break;}}_197=_197.offsetParent;}while(_197);return [valueL,_198];};}
\ No newline at end of file diff --git a/wp-includes/js/tinymce/themes/advanced/jscripts/link.js b/wp-includes/js/tinymce/themes/advanced/jscripts/link.js index 31b3878..74045bd 100644 --- a/wp-includes/js/tinymce/themes/advanced/jscripts/link.js +++ b/wp-includes/js/tinymce/themes/advanced/jscripts/link.js @@ -25,7 +25,7 @@ function init() { option.selected = true; } - document.forms[0].href.value = tinyMCE.getWindowArg('href'); + document.forms[0].href.value = tinyMCE.getWindowArg('href') || 'http://'; document.forms[0].linktitle.value = tinyMCE.getWindowArg('title'); document.forms[0].insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action'), 'Insert', true); |
