summaryrefslogtreecommitdiffstats
path: root/wp-includes/js
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-01-19 13:07:48 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-01-19 13:07:48 +0000
commitb58719caa0f572f09019c5a349ae42126cc637eb (patch)
tree022fdc8e9bacbfa307d1f3b60086b49afe86986b /wp-includes/js
parentacdcdacc2fe65422a3f52e3320283feba13d9c40 (diff)
downloadwordpress-mu-b58719caa0f572f09019c5a349ae42126cc637eb.tar.gz
wordpress-mu-b58719caa0f572f09019c5a349ae42126cc637eb.tar.xz
wordpress-mu-b58719caa0f572f09019c5a349ae42126cc637eb.zip
WP Merge to rev 4771
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@852 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/js')
-rw-r--r--wp-includes/js/crop/cropper.js34
-rw-r--r--wp-includes/js/dbx.compressed.js1
-rw-r--r--wp-includes/js/fat.compressed.js1
-rw-r--r--wp-includes/js/list-manipulation-js.php28
-rw-r--r--wp-includes/js/quicktags.compressed.js1
-rw-r--r--wp-includes/js/tw-sack.compressed.js1
-rw-r--r--wp-includes/js/wp-ajax-js.php10
7 files changed, 36 insertions, 40 deletions
diff --git a/wp-includes/js/crop/cropper.js b/wp-includes/js/crop/cropper.js
index 2691153..d0cb8e4 100644
--- a/wp-includes/js/crop/cropper.js
+++ b/wp-includes/js/crop/cropper.js
@@ -109,7 +109,7 @@ this.handleSW=Builder.node("div",{"class":_f+"handle "+_f+"handleSW"});
this.handleW=Builder.node("div",{"class":_f+"handle "+_f+"handleW"});
this.handleNW=Builder.node("div",{"class":_f+"handle "+_f+"handleNW"});
this.selArea=Builder.node("div",{"class":_f+"selArea"},[Builder.node("div",{"class":_f+"marqueeHoriz "+_f+"marqueeNorth"},[Builder.node("span")]),Builder.node("div",{"class":_f+"marqueeVert "+_f+"marqueeEast"},[Builder.node("span")]),Builder.node("div",{"class":_f+"marqueeHoriz "+_f+"marqueeSouth"},[Builder.node("span")]),Builder.node("div",{"class":_f+"marqueeVert "+_f+"marqueeWest"},[Builder.node("span")]),this.handleN,this.handleNE,this.handleE,this.handleSE,this.handleS,this.handleSW,this.handleW,this.handleNW,Builder.node("div",{"class":_f+"clickArea"})]);
-$(this.selArea).setStyle({backgroundColor:"transparent",backgroundRepeat:"no-repeat",backgroundPosition:"0 0"});
+Element.setStyle($(this.selArea),{backgroundColor:"transparent",backgroundRepeat:"no-repeat",backgroundPosition:"0 0"});
this.imgWrap.appendChild(this.img);
this.imgWrap.appendChild(this.dragArea);
this.dragArea.appendChild(this.selArea);
@@ -131,17 +131,17 @@ this.setParams();
this.imgW=this.img.width;
this.imgH=this.img.height;
if(!this.isIE){
-$(this.overlay).setStyle({width:this.imgW+"px",height:this.imgH+"px"});
-$(this.overlay).hide();
-$(this.selArea).setStyle({backgroundImage:"url("+this.img.src+")"});
+Element.setStyle($(this.overlay),{width:this.imgW+"px",height:this.imgH+"px"});
+Element.hide($(this.overlay));
+Element.setStyle($(this.selArea),{backgroundImage:"url("+this.img.src+")"});
}else{
-$(this.north).setStyle({height:0});
-$(this.east).setStyle({width:0,height:0});
-$(this.south).setStyle({height:0});
-$(this.west).setStyle({width:0,height:0});
+Element.setStyle($(this.north),{height:0});
+Element.setStyle($(this.east),{width:0,height:0});
+Element.setStyle($(this.south),{height:0});
+Element.setStyle($(this.west),{width:0,height:0});
}
-$(this.imgWrap).setStyle({"width":this.imgW+"px","height":this.imgH+"px"});
-$(this.selArea).hide();
+Element.setStyle($(this.imgWrap),{"width":this.imgW+"px","height":this.imgH+"px"});
+Element.hide($(this.selArea));
var _15=Position.positionedOffset(this.imgWrap);
this.wrapOffsets={"top":_15[1],"left":_15[0]};
var _16={x1:0,y1:0,x2:0,y2:0};
@@ -151,7 +151,7 @@ _16.x1=Math.ceil((this.imgW-this.options.ratioDim.x)/2);
_16.y1=Math.ceil((this.imgH-this.options.ratioDim.y)/2);
_16.x2=_16.x1+this.options.ratioDim.x;
_16.y2=_16.y1+this.options.ratioDim.y;
-this.selArea.show();
+Element.show(this.selArea);
this.drawArea();
this.endCrop();
}
@@ -339,7 +339,7 @@ _37.a1=_37.a1=_37.a2-_3c;
return _37;
},drawArea:function(){
if(!this.isIE){
-$(this.overlay).show();
+Element.show($(this.overlay));
}
var _3e=this.calcW();
var _3f=this.calcH();
@@ -402,10 +402,10 @@ fixEl.removeChild(n);
},startResize:function(e){
this.startCoords=this.cloneCoords(this.areaCoords);
this.resizing=true;
-this.resizeHandle=Event.element(e).classNames().toString().replace(/([^N|NE|E|SE|S|SW|W|NW])+/,"");
+this.resizeHandle=Element.classNames(Event.element(e)).toString().replace(/([^N|NE|E|SE|S|SW|W|NW])+/,"");
Event.stop(e);
},startDrag:function(e){
-this.selArea.show();
+Element.show(this.selArea);
this.clickCoords=this.getCurPos(e);
this.setAreaCoords({x1:this.clickCoords.x,y1:this.clickCoords.y,x2:this.clickCoords.x,y2:this.clickCoords.y});
this.dragging=true;
@@ -496,8 +496,8 @@ this.previewWrap=$(this.options.previewWrap);
this.previewImg=this.img.cloneNode(false);
this.options.displayOnInit=true;
this.hasPreviewImg=true;
-this.previewWrap.addClassName("imgCrop_previewWrap");
-this.previewWrap.setStyle({width:this.options.minWidth+"px",height:this.options.minHeight+"px"});
+Element.addClassName(this.previewWrap,"imgCrop_previewWrap");
+Element.setStyle(this.previewWrap,{width:this.options.minWidth+"px",height:this.options.minHeight+"px"});
this.previewWrap.appendChild(this.previewImg);
}
},subDrawArea:function(){
@@ -513,4 +513,4 @@ _5d.height=_5c.h;
_5d.left=_5c.x;
_5d.top=_5c.y;
}
-}}); \ No newline at end of file
+}});
diff --git a/wp-includes/js/dbx.compressed.js b/wp-includes/js/dbx.compressed.js
deleted file mode 100644
index ea63740..0000000
--- a/wp-includes/js/dbx.compressed.js
+++ /dev/null
@@ -1 +0,0 @@
-var dbx;function dbxManager(_1){dbx=this;if(!/^[-_a-z0-9]+$/i.test(_1)){alert("Error from dbxManager:\n\""+_1+"\" is an invalid session ID");return;}this.supported=!(document.getElementsByTagName("*").length==0||(navigator.vendor=="KDE"&&typeof window.sidebar=="undefined"));if(!this.supported){return;}this.etype=typeof document.addEventListener!="undefined"?"addEventListener":typeof document.attachEvent!="undefined"?"attachEvent":"none";this.eprefix=(this.etype=="attachEvent"?"on":"");if(typeof window.opera!="undefined"&&parseFloat(navigator.userAgent.toLowerCase().split(/opera[\/ ]/)[1].split(" ")[0],10)<7.5){this.etype="none";}if(this.etype=="none"){this.supported=false;return;}this.running=0;this.sid=_1;this.savedata={};this.cookiestate=this.getCookieState();}dbxManager.prototype.setCookieState=function(){var _2=new Date();_2.setTime(_2.getTime()+(365*24*60*60*1000));var _3="";for(j in this.savedata){if(typeof this.savedata[j]!="function"){_3+=j+"="+this.savedata[j]+"&";}}this.state=_3.replace(/^(.+)&$/,"$1");this.cookiestring=this.state.replace(/,/g,"|");this.cookiestring=this.cookiestring.replace(/=/g,":");if(typeof this.onstatechange=="undefined"||this.onstatechange()){document.cookie="dbx-"+this.sid+"="+this.cookiestring+"; expires="+_2.toGMTString()+"; path=/";}};dbxManager.prototype.getCookieState=function(){this.cookiestate=null;if(document.cookie){if(document.cookie.indexOf("dbx-"+this.sid)!=-1){this.cookie=document.cookie.split("dbx-"+this.sid+"=")[1].split(";")[0].split("&");for(var i in this.cookie){if(typeof this.cookie[i]!="function"){this.cookie[i]=this.cookie[i].replace(/\|/g,",");this.cookie[i]=this.cookie[i].replace(/:/g,"=");this.cookie[i]=this.cookie[i].split("=");this.cookie[i][1]=this.cookie[i][1].split(",");}}this.cookiestate={};for(i in this.cookie){if(typeof this.cookie[i]!="function"){this.cookiestate[this.cookie[i][0]]=this.cookie[i][1];}}}}return this.cookiestate;};dbxManager.prototype.addDataMember=function(_5,_6){this.savedata[_5]=_6;};dbxManager.prototype.createElement=function(_7){return typeof document.createElementNS!="undefined"?document.createElementNS("http://www.w3.org/1999/xhtml",_7):document.createElement(_7);};dbxManager.prototype.getTarget=function(e,_9,_a){if(typeof _a!="undefined"){var _b=_a;}else{_b=typeof e.target!="undefined"?e.target:e.srcElement;}var _c=new RegExp(_9,"");while(!_c.test(_b.className)){_b=_b.parentNode;}return _b;};function dbxGroup(_d,_e,_f,fix,ani,_12,def,_14,_15,_16,_17,_18,_19,_1a){if(!/^[-_a-z0-9]+$/i.test(_d)){alert("Error from dbxGroup:\n\""+_d+"\" is an invalid container ID");return;}this.container=document.getElementById(_d);if(this.container==null||!dbx.supported){return;}var _1b=this;this.gid=_d;this.dragok=false;this.box=null;this.vertical=_e=="vertical";this.threshold=parseInt(_f,10);this.restrict=fix=="yes";this.resolution=parseInt(ani,10);this.toggles=_12=="yes";this.defopen=def!="closed";this.vocab={"open":_14,"close":_15,"move":_16,"toggle":_17,"kmove":_18,"ktoggle":_19,"syntax":_1a};this.container.style.position="relative";this.container.style.display="block";if(typeof window.opera!="undefined"){this.container.style.display="run-in";}this.boxes=[];this.buttons=[];this.order=[];this.eles=this.container.getElementsByTagName("*");for(var i=0;i<this.eles.length;i++){if(/dbx\-box/i.test(this.eles[i].className)&&!/dbx\-dummy/i.test(this.eles[i].className)){this.eles[i].style.position="relative";this.eles[i].style.display="block";this.boxes.push(this.eles[i]);this.eles[i].className+=" dbx-box-open";this.eles[i].className+=" dbxid"+this.order.length;this.order.push(this.order.length.toString()+"+");this.eles[i][dbx.etype](dbx.eprefix+"mousedown",function(e){if(!e){e=window.event;}_1b.mousedown(e,dbx.getTarget(e,"dbx-box"));},false);}if(/dbx\-handle/i.test(this.eles[i].className)){this.eles[i].style.position="relative";this.eles[i].style.display="block";this.eles[i].className+=" dbx-handle-cursor";this.eles[i].setAttribute("title",this.eles[i].getAttribute("title")==null||this.eles[i].title==""?this.vocab.move:this.vocab.syntax.replace("%mytitle%",this.eles[i].title).replace("%dbxtitle%",this.vocab.move));if(this.toggles){this.buttons.push(this.addToggleBehavior(this.eles[i]));}else{this.eles[i][dbx.etype](dbx.eprefix+"key"+(typeof document.uniqueID!="undefined"||navigator.vendor=="Apple Computer, Inc."?"down":"press"),function(e){if(!e){e=window.event;}return _1b.keypress(e,dbx.getTarget(e,"dbx-handle"));},false);this.eles[i][dbx.etype](dbx.eprefix+"focus",function(e){if(!e){e=window.event;}_1b.createTooltip(null,dbx.getTarget(e,"dbx-handle"));},false);this.eles[i][dbx.etype](dbx.eprefix+"blur",function(){_1b.removeTooltip();},false);}}}dbx.addDataMember(this.gid,this.order.join(","));var _20=this.container.appendChild(dbx.createElement("span"));_20.className="dbx-box dbx-dummy";_20.style.display="block";_20.style.width="0";_20.style.height="0";_20.style.overflow="hidden";if(this.vertical){_20.className+=" dbx-offdummy";}this.boxes.push(_20);if(dbx.cookiestate!=null&&typeof dbx.cookiestate[this.gid]!="undefined"){var num=dbx.cookiestate[this.gid].length;if(num==this.boxes.length-1){for(i=0;i<num;i++){var _22=parseInt(dbx.cookiestate[this.gid][i],10);this.container.insertBefore(this.boxes[_22],_20);if(this.toggles&&/\-$/.test(dbx.cookiestate[this.gid][i])){this.toggleBoxState(this.buttons[_22],false);}}this.getBoxOrder();}}else{if(!this.defopen&&this.toggles){var len=this.buttons.length;for(i=0;i<len;i++){this.toggleBoxState(this.buttons[i],true);}}}document[dbx.etype](dbx.eprefix+"mouseout",function(e){if(typeof e.target=="undefined"){e=window.event;e.relatedTarget=e.toElement;}if(e.relatedTarget==null){_1b.mouseup(e);}},false);document[dbx.etype](dbx.eprefix+"mousemove",function(e){_1b.mousemove(e);return !_1b.dragok;},false);document[dbx.etype](dbx.eprefix+"mouseup",function(e){_1b.mouseup(e);},false);this.keydown=false;document[dbx.etype](dbx.eprefix+"keydown",function(){_1b.keydown=true;},false);document[dbx.etype](dbx.eprefix+"keyup",function(){_1b.keydown=false;},false);}dbxGroup.prototype.addToggleBehavior=function(){var _27=this;var _28=arguments[0].appendChild(dbx.createElement("a"));_28.appendChild(document.createTextNode("\xa0"));_28.style.cursor="pointer";_28.href="javascript:void(null)";_28.className="dbx-toggle dbx-toggle-open";_28.setAttribute("title",this.vocab.toggle.replace("%toggle%",this.vocab.close));_28.hasfocus=typeof window.opera!="undefined"||navigator.vendor=="Apple Computer, Inc."?null:false;this.tooltip=null;_28.onclick=function(){if(this.hasfocus===true||this.hasfocus===null){_27.removeTooltip();_27.toggleBoxState(this,true);}};_28["onkey"+(typeof document.uniqueID!="undefined"||navigator.vendor=="Apple Computer, Inc."?"down":"press")]=function(e){if(!e){e=window.event;}return _27.keypress(e,this);};_28.onfocus=function(){var len=_27.buttons.length;for(var i=0;i<len;i++){_27.buttons[i].className=_27.buttons[i].className.replace(/[ ](dbx\-toggle\-hilite\-)(open|closed)/,"");}var _2c=(/dbx\-toggle\-open/.test(this.className));this.className+=" dbx-toggle-hilite-"+(_2c?"open":"closed");_27.createTooltip(_2c,this);this.isactive=true;if(this.hasfocus!==null){this.hasfocus=true;}};_28.onblur=function(){this.className=this.className.replace(/[ ](dbx\-toggle\-hilite\-)(open|closed)/,"");_27.removeTooltip();if(this.hasfocus!==null){this.hasfocus=false;}};return _28;};dbxGroup.prototype.toggleBoxState=function(_2d,_2e){var _2f=(/dbx\-toggle\-open/.test(_2d.className));var _30=dbx.getTarget(null,"dbx-box",_2d);dbx.box=_30;dbx.toggle=_2d;if(typeof dbx.container=="undefined"){dbx.group=dbx.getTarget(null,"dbx-group",_30);}else{dbx.group=dbx.container;}if((!_2f&&(typeof dbx.onboxopen=="undefined"||dbx.onboxopen()))||(_2f&&(typeof dbx.onboxclose=="undefined"||dbx.onboxclose()))){_2d.className="dbx-toggle dbx-toggle-"+(_2f?"closed":"open");_2d.title=this.vocab.toggle.replace("%toggle%",_2f?this.vocab.open:this.vocab.close);if(typeof _2d.isactive!="undefined"){_2d.className+=" dbx-toggle-hilite-"+(_2f?"closed":"open");}_30.className=_30.className.replace(/[ ](dbx-box-)(open|closed)/," $1"+(_2f?"closed":"open"));if(_2e){this.getBoxOrder();}}};dbxGroup.prototype.shiftBoxPosition=function(e,_32,_33){var _34=dbx.getTarget(null,"dbx-box",_32);dbx.group=this.container;dbx.box=_34;dbx.event=e;if(typeof dbx.onboxdrag=="undefined"||dbx.onboxdrag()){var _35=[];var len=this.boxes.length;for(var i=0;i<len;i++){_35[i]=[i,this.boxes[i][this.vertical?"offsetTop":"offsetLeft"]];if(_34==this.boxes[i]){this.idref=i;}}_35.sort(this.compare);for(i=0;i<len;i++){if(_35[i][0]==this.idref){if((_33&&i<len-2)||(!_33&&i>0)){var _38=this.boxes[_35[i+(_33?1:-1)][0]];if(this.resolution>0){var _39={"x":_34.offsetLeft,"y":_34.offsetTop};var _3a={"x":_38.offsetLeft,"y":_38.offsetTop};}var obj={"insert":(_33?_38:_34),"before":(_33?_34:_38)};this.container.insertBefore(obj.insert,obj.before);if(this.resolution>0){var _3c={"sibling":new dbxAnimator(this,_38,_3a,this.resolution,true,_32),"parent":new dbxAnimator(this,_34,_39,this.resolution,true,_32)};}else{_32.focus();}break;}}}this.getBoxOrder();}};dbxGroup.prototype.compare=function(a,b){return a[1]-b[1];};dbxGroup.prototype.createTooltip=function(_3f,_40){if(this.keydown){this.tooltip=this.container.appendChild(dbx.createElement("span"));this.tooltip.style.visibility="hidden";this.tooltip.className="dbx-tooltip";if(_3f!=null){this.tooltip.appendChild(document.createTextNode(this.vocab.kmove+this.vocab.ktoggle.replace("%toggle%",_3f?this.vocab.close:this.vocab.open)));}else{this.tooltip.appendChild(document.createTextNode(this.vocab.kmove));}var _41=dbx.getTarget(null,"dbx-box",_40);this.tooltip.style.left=_41.offsetLeft+"px";this.tooltip.style.top=_41.offsetTop+"px";var _42=this.tooltip;window.setTimeout(function(){if(_42!=null){_42.style.visibility="visible";}},500);}};dbxGroup.prototype.removeTooltip=function(){if(this.tooltip!=null){this.tooltip.parentNode.removeChild(this.tooltip);this.tooltip=null;}};dbxGroup.prototype.mousedown=function(e,box){var _45=typeof e.target!="undefined"?e.target:e.srcElement;if(_45.nodeName=="#text"){_45=_45.parentNode;}if(!/dbx\-(toggle|box|group)/i.test(_45.className)){while(!/dbx\-(handle|box|group)/i.test(_45.className)){_45=_45.parentNode;}}if(/dbx\-handle/i.test(_45.className)){this.removeTooltip();this.released=false;this.initial={"x":e.clientX,"y":e.clientY};this.current={"x":0,"y":0};this.createCloneBox(box);if(typeof e.preventDefault!="undefined"){e.preventDefault();}if(typeof document.onselectstart!="undefined"){document.onselectstart=function(){return false;};}}};dbxGroup.prototype.mousemove=function(e){if(this.dragok&&this.box!=null){this.positive=this.vertical?(e.clientY>this.current.y?true:false):(e.clientX>this.current.x?true:false);this.current={"x":e.clientX,"y":e.clientY};var _47={"x":this.current.x-this.initial.x,"y":this.current.y-this.initial.y};if(((_47.x>=0&&_47.x<=this.threshold)||(_47.x<=0&&_47.x>=0-this.threshold))&&((_47.y>=0&&_47.y<=this.threshold)||(_47.y<=0&&_47.y>=0-this.threshold))){this.current.x-=_47.x;this.current.y-=_47.y;}if(this.released||_47.x>this.threshold||_47.x<(0-this.threshold)||_47.y>this.threshold||_47.y<(0-this.threshold)){dbx.group=this.container;dbx.box=this.box;dbx.event=e;if(typeof dbx.onboxdrag=="undefined"||dbx.onboxdrag()){this.released=true;if(!this.restrict||!this.vertical){this.boxclone.style.left=(this.current.x-this.difference.x)+"px";}if(!this.restrict||this.vertical){this.boxclone.style.top=(this.current.y-this.difference.y)+"px";}this.moveOriginalToPosition(this.current.x,this.current.y);if(typeof e.preventDefault!="undefined"){e.preventDefault();}}}}return true;};dbxGroup.prototype.mouseup=function(e){if(this.box!=null){this.moveOriginalToPosition(e.clientX,e.clientY);this.removeCloneBox();this.getBoxOrder();if(typeof document.onselectstart!="undefined"){document.onselectstart=function(){return true;};}}this.dragok=false;};dbxGroup.prototype.keypress=function(e,_4a){if(/^(3[7-9])|(40)$/.test(e.keyCode)){this.removeTooltip();if((this.vertical&&/^(38|40)$/.test(e.keyCode))||(!this.vertical&&/^(37|39)$/.test(e.keyCode))){this.shiftBoxPosition(e,_4a,/^[3][78]$/.test(e.keyCode)?false:true);if(typeof e.preventDefault!="undefined"){e.preventDefault();}else{return false;}typeof e.stopPropagation!="undefined"?e.stopPropagation():e.cancelBubble=true;this.keydown=false;}}return true;};dbxGroup.prototype.getBoxOrder=function(){this.order=[];var len=this.eles.length;for(var j=0;j<len;j++){if(/dbx\-box/i.test(this.eles[j].className)&&!/dbx\-(clone|dummy)/i.test(this.eles[j].className)){this.order.push(this.eles[j].className.split("dbxid")[1]+(/dbx\-box\-open/i.test(this.eles[j].className)?"+":"-"));}}dbx.savedata[this.gid]=this.order.join(",");dbx.setCookieState();};dbxGroup.prototype.createClone=function(){var _4d=this.container.appendChild(arguments[0].cloneNode(true));_4d.className+=" dbx-clone";_4d.style.position="absolute";_4d.style.visibility="hidden";_4d.style.zIndex=arguments[1];_4d.style.left=arguments[2].x+"px";_4d.style.top=arguments[2].y+"px";_4d.style.width=arguments[0].offsetWidth+"px";_4d.style.height=arguments[0].offsetHeight+"px";return _4d;};dbxGroup.prototype.createCloneBox=function(box){this.box=box;this.position={"x":this.box.offsetLeft,"y":this.box.offsetTop};this.difference={"x":(this.initial.x-this.position.x),"y":(this.initial.y-this.position.y)};this.boxclone=this.createClone(this.box,30000,this.position);this.boxclone.style.cursor="move";this.dragok=true;};dbxGroup.prototype.removeCloneBox=function(){this.container.removeChild(this.boxclone);this.box.style.visibility="visible";this.box=null;};dbxGroup.prototype.moveOriginalToPosition=function(_4f,_50){var _51={"xy":this.vertical?_50-this.difference.y:_4f-this.difference.x,"wh":this.vertical?this.boxclone.offsetHeight:this.boxclone.offsetWidth};this.box.style.visibility="hidden";this.boxclone.style.visibility="visible";var len=this.boxes.length;for(var i=0;i<len;i++){var _54={"xy":this.vertical?this.boxes[i].offsetTop:this.boxes[i].offsetLeft,"wh":this.vertical?this.boxes[i].offsetHeight:this.boxes[i].offsetWidth};if((this.positive&&_51.xy+_51.wh>_54.xy&&_51.xy<_54.xy)||(!this.positive&&_51.xy<_54.xy&&_51.xy+_51.wh>_54.xy)){if(this.boxes[i]==this.box){return;}var _55=this.box.nextSibling;while(_55.className==null||!/dbx\-box/.test(_55.className)){_55=_55.nextSibling;}if(this.boxes[i]==_55){return;}if(this.resolution>0){if(this.box[this.vertical?"offsetTop":"offsetLeft"]<_54.xy){var _56=this.boxes[i].previousSibling;while(_56.className==null||!/dbx\-box/.test(_56.className)){_56=_56.previousSibling;}}else{_56=this.boxes[i];}var _57={"x":_56.offsetLeft,"y":_56.offsetTop};}var _58={"x":this.box.offsetLeft,"y":this.box.offsetTop};this.container.insertBefore(this.box,this.boxes[i]);this.initial.x+=(this.box.offsetLeft-_58.x);this.initial.y+=(this.box.offsetTop-_58.y);if(this.resolution>0&&_56!=this.box){var _59=new dbxAnimator(this,_56,_57,this.resolution,false,null);}else{}break;}}};function dbxAnimator(_5a,box,pos,res,kbd,_5f){this.caller=_5a;this.box=box;this.timer=null;var _60=pos[this.caller.vertical?"y":"x"];var _61=this.box[this.caller.vertical?"offsetTop":"offsetLeft"];if(_60!=_61){if(dbx.running>this.caller.boxes.length-1){return;}var _62=this.caller.createClone(this.box,29999,arguments[2]);_62.style.visibility="visible";this.box.style.visibility="hidden";this.animateClone(_62,_60,_61>_60?_61-_60:0-(_60-_61),this.caller.vertical?"top":"left",res,kbd,_5f);}}dbxAnimator.prototype.animateClone=function(_63,_64,_65,dir,res,kbd,_69){var _6a=this;var _6b=0;dbx.running++;this.timer=window.setInterval(function(){_6b++;_64+=_65/res;_63.style[dir]=_64+"px";if(_6b==res){window.clearTimeout(_6a.timer);_6a.timer=null;dbx.running--;_6a.caller.container.removeChild(_63);_6a.box.style.visibility="visible";if(kbd){if(_69!=null&&_69.parentNode.style.visibility!="hidden"){_69.focus();}else{if(_6a.caller.toggles){var _6c=_6a.caller.buttons[parseInt(_6a.box.className.split("dbxid")[1],10)];if(_6c!=null&&typeof _6c.isactive!="undefined"){_6c.focus();}}}}}},20);};if(typeof window.attachEvent!="undefined"){window.attachEvent("onunload",function(){var ev=["mousedown","mousemove","mouseup","mouseout","click","keydown","keyup","focus","blur","selectstart","statechange","boxdrag","boxopen","boxclose"];var el=ev.length;var dl=document.all.length;for(var i=0;i<dl;i++){for(var j=0;j<el;j++){document.all[i]["on"+ev[j]]=null;}}});} \ No newline at end of file
diff --git a/wp-includes/js/fat.compressed.js b/wp-includes/js/fat.compressed.js
deleted file mode 100644
index 1cc4414..0000000
--- a/wp-includes/js/fat.compressed.js
+++ /dev/null
@@ -1 +0,0 @@
-var Fat={make_hex:function(r,g,b){r=r.toString(16);if(r.length==1){r="0"+r;}g=g.toString(16);if(g.length==1){g="0"+g;}b=b.toString(16);if(b.length==1){b="0"+b;}return "#"+r+g+b;},fade_all:function(_4){var a=document.getElementsByTagName("*");for(var i=0;i<a.length;i++){var o=a[i];var r=/fade-?(\w{3,6})?/.exec(o.className);if(r){if(!r[1]){r[1]="";}if(o.id){Fat.fade_element(o.id,null,_4,"#"+r[1]);}}}},fade_element:function(id,_a,_b,_c,to){if(!_a){_a=30;}if(!_b){_b=3000;}if(!_c||_c=="#"){_c="#FFFF33";}if(!to){to=this.get_bgcolor(id);}var _e=Math.round(_a*(_b/1000));var _f=_b/_e;var _10=_f;var _11=0;if(_c.length<7){_c+=_c.substr(1,3);}if(to.length<7){to+=to.substr(1,3);}var rf=parseInt(_c.substr(1,2),16);var gf=parseInt(_c.substr(3,2),16);var bf=parseInt(_c.substr(5,2),16);var rt=parseInt(to.substr(1,2),16);var gt=parseInt(to.substr(3,2),16);var bt=parseInt(to.substr(5,2),16);var r,g,b,h;while(_11<_e){r=Math.floor(rf*((_e-_11)/_e)+rt*(_11/_e));g=Math.floor(gf*((_e-_11)/_e)+gt*(_11/_e));b=Math.floor(bf*((_e-_11)/_e)+bt*(_11/_e));h=this.make_hex(r,g,b);setTimeout("Fat.set_bgcolor('"+id+"','"+h+"')",_10);_11++;_10=_f*_11;}setTimeout("Fat.set_bgcolor('"+id+"','"+to+"')",_10);},set_bgcolor:function(id,c){var o=document.getElementById(id);o.style.backgroundColor=c;},get_bgcolor:function(id){var o=document.getElementById(id);while(o){var c;if(window.getComputedStyle){c=window.getComputedStyle(o,null).getPropertyValue("background-color");}if(o.currentStyle){c=o.currentStyle.backgroundColor;}if((c!=""&&c!="transparent")||o.tagName=="BODY"){break;}o=o.parentNode;}if(c==undefined||c==""||c=="transparent"){c="#FFFFFF";}var rgb=c.match(/rgb\s*\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/);if(rgb){c=this.make_hex(parseInt(rgb[1]),parseInt(rgb[2]),parseInt(rgb[3]));}return c;}};addLoadEvent(function(){Fat.fade_all();}); \ No newline at end of file
diff --git a/wp-includes/js/list-manipulation-js.php b/wp-includes/js/list-manipulation-js.php
index 8787210..b94c684 100644
--- a/wp-includes/js/list-manipulation-js.php
+++ b/wp-includes/js/list-manipulation-js.php
@@ -23,7 +23,7 @@ Object.extend(listMan.prototype, {
this.theList = $(theListId ? theListId : 'the-list');
if ( !this.theList )
return false;
- this.theList.cleanWhitespace();
+ Element.cleanWhitespace(this.theList);
},
// sends add-what and fields contained in where
@@ -54,7 +54,7 @@ Object.extend(listMan.prototype, {
showLinkMessage += "<a href='#" + what + '-' + id + "'><?php echo js_escape(__('Jump to new item')); ?>";
});
if ( tempObj.showLink && showLinkMessage )
- ajaxAdd.myResponseElement.update("<div id='jumplink' class='updated fade'><p>" + showLinkMessage + "</p></div>");
+ Element.update(ajaxAdd.myResponseElement,"<div id='jumplink' class='updated fade'><p>" + showLinkMessage + "</p></div>");
}
if ( tempObj.addComplete && typeof tempObj.addComplete == 'function' )
tempObj.addComplete( what, where, update, transport );
@@ -82,7 +82,7 @@ Object.extend(listMan.prototype, {
var action = 'delete-' + what + '&id=' + id;
var idName = what.replace('-as-spam','') + '-' + id;
ajaxDel.addOnComplete( function(transport) {
- ajaxDel.myResponseElement.update('');
+ Element.update(ajaxDel.myResponseElement,'');
tempObj.destore(action);
if( tempObj.delComplete && typeof tempObj.delComplete == 'function' )
tempObj.delComplete( what, id, transport );
@@ -105,7 +105,7 @@ Object.extend(listMan.prototype, {
var action = 'dim-' + what + '&id=' + id;
var idName = what + '-' + id;
ajaxDim.addOnComplete( function(transport) {
- ajaxDim.myResponseElement.update('');
+ Element.update(ajaxDim.myResponseElement,'');
tempObj.destore(action);
if ( tempObj.dimComplete && typeof tempObj.dimComplete == 'function' )
tempObj.dimComplete( what, id, dimClass, transport );
@@ -120,11 +120,11 @@ Object.extend(listMan.prototype, {
addListItem: function( h ) {
new Insertion[this.topAdder ? 'Top' : 'Bottom'](this.theList,h);
- this.theList.cleanWhitespace();
+ Element.cleanWhitespace(this.theList);
var id = this.topAdder ? this.theList.firstChild.id : this.theList.lastChild.id;
if ( this.alt )
if ( this.theList.childNodes.length % 2 )
- $(id).addClassName(this.alt);
+ Element.addClassName($(id),this.alt);
Fat.fade_element(id);
},
@@ -145,7 +145,7 @@ Object.extend(listMan.prototype, {
replaceListItem: function( id, h, update ) {
id = $(id);
if ( !update ) {
- id.remove();
+ Element.remove(id);
this.addListItem( h );
return;
}
@@ -156,14 +156,14 @@ Object.extend(listMan.prototype, {
// toggles class
dimItem: function( id, dimClass, noFade ) {
id = $(id);
- if ( id.hasClassName(dimClass) ) {
+ if ( Element.hasClassName(id,dimClass) ) {
if ( !noFade )
Fat.fade_element(id.id,null,700,null);
- id.removeClassName(dimClass);
+ Element.removeClassName(id,dimClass);
} else {
if ( !noFade )
Fat.fade_element(id.id,null,700,'#FF3333');
- id.addClassName(dimClass);
+ Element.addClassName(id,dimClass);
}
},
@@ -183,7 +183,7 @@ Object.extend(listMan.prototype, {
this.theList.replaceChild(this.dataStore[action], $(id));
delete(this.dataStore[action]);
if ( error ) {
- func = function() { $(id).setStyle( { 'background-color': '#FF3333' } ); }
+ func = function() { Element.setStyle($(id),{backgroundColor:'#FF3333'}); }
func(); setTimeout(func, 705); // Hit it twice in case it's still fading.
}
},
@@ -246,12 +246,12 @@ Object.extend(listMan.prototype, {
return;
var alt = this.alt;
var offset = this.altOffset;
- var listItems = $A(this.theList.childNodes).findAll( function(i) { return i.visible() } );
+ var listItems = $A(this.theList.childNodes).findAll( function(i) { return Element.visible(i) } );
listItems.each( function(i,n) {
if ( ( n + offset ) % 2 )
- i.removeClassName(alt);
+ Element.removeClassName(i,alt);
else
- i.addClassName(alt);
+ Element.addClassName(i,alt);
});
}
});
diff --git a/wp-includes/js/quicktags.compressed.js b/wp-includes/js/quicktags.compressed.js
deleted file mode 100644
index bd6cade..0000000
--- a/wp-includes/js/quicktags.compressed.js
+++ /dev/null
@@ -1 +0,0 @@
-var edButtons=new Array();var edLinks=new Array();var edOpenTags=new Array();function edButton(id,_2,_3,_4,_5,_6){this.id=id;this.display=_2;this.tagStart=_3;this.tagEnd=_4;this.access=_5;this.open=_6;}function zeroise(_7,_8){var _9=_7.toString();if(_7<0){_9=_9.substr(1,_9.length);}while(_9.length<_8){_9="0"+_9;}if(_7<0){_9="-"+_9;}return _9;}var now=new Date();var datetime=now.getUTCFullYear()+"-"+zeroise(now.getUTCMonth()+1,2)+"-"+zeroise(now.getUTCDate(),2)+"T"+zeroise(now.getUTCHours(),2)+":"+zeroise(now.getUTCMinutes(),2)+":"+zeroise(now.getUTCSeconds(),2)+"+00:00";edButtons[edButtons.length]=new edButton("ed_strong","b","<strong>","</strong>","b");edButtons[edButtons.length]=new edButton("ed_em","i","<em>","</em>","i");edButtons[edButtons.length]=new edButton("ed_link","link","","</a>","a");edButtons[edButtons.length]=new edButton("ed_block","b-quote","\n\n<blockquote>","</blockquote>\n\n","q");edButtons[edButtons.length]=new edButton("ed_del","del","<del datetime=\""+datetime+"\">","</del>","d");edButtons[edButtons.length]=new edButton("ed_ins","ins","<ins datetime=\""+datetime+"\">","</ins>","s");edButtons[edButtons.length]=new edButton("ed_img","img","","","m",-1);edButtons[edButtons.length]=new edButton("ed_ul","ul","<ul>\n","</ul>\n\n","u");edButtons[edButtons.length]=new edButton("ed_ol","ol","<ol>\n","</ol>\n\n","o");edButtons[edButtons.length]=new edButton("ed_li","li","\t<li>","</li>\n","l");edButtons[edButtons.length]=new edButton("ed_code","code","<code>","</code>","c");edButtons[edButtons.length]=new edButton("ed_more","more","<!--more-->","","t",-1);function edLink(){this.display="";this.URL="";this.newWin=0;}edLinks[edLinks.length]=new edLink("WordPress","http://wordpress.org/");edLinks[edLinks.length]=new edLink("alexking.org","http://www.alexking.org/");function edShowButton(_a,i){if(_a.id=="ed_img"){document.write("<input type=\"button\" id=\""+_a.id+"\" accesskey=\""+_a.access+"\" class=\"ed_button\" onclick=\"edInsertImage(edCanvas);\" value=\""+_a.display+"\" />");}else{if(_a.id=="ed_link"){document.write("<input type=\"button\" id=\""+_a.id+"\" accesskey=\""+_a.access+"\" class=\"ed_button\" onclick=\"edInsertLink(edCanvas, "+i+");\" value=\""+_a.display+"\" />");}else{document.write("<input type=\"button\" id=\""+_a.id+"\" accesskey=\""+_a.access+"\" class=\"ed_button\" onclick=\"edInsertTag(edCanvas, "+i+");\" value=\""+_a.display+"\" />");}}}function edShowLinks(){var _c="<select onchange=\"edQuickLink(this.options[this.selectedIndex].value, this);\"><option value=\"-1\" selected>(Quick Links)</option>";for(i=0;i<edLinks.length;i++){_c+="<option value=\""+i+"\">"+edLinks[i].display+"</option>";}_c+="</select>";document.write(_c);}function edAddTag(_d){if(edButtons[_d].tagEnd!=""){edOpenTags[edOpenTags.length]=_d;document.getElementById(edButtons[_d].id).value="/"+document.getElementById(edButtons[_d].id).value;}}function edRemoveTag(_e){for(i=0;i<edOpenTags.length;i++){if(edOpenTags[i]==_e){edOpenTags.splice(i,1);document.getElementById(edButtons[_e].id).value=document.getElementById(edButtons[_e].id).value.replace("/","");}}}function edCheckOpenTags(_f){var tag=0;for(i=0;i<edOpenTags.length;i++){if(edOpenTags[i]==_f){tag++;}}if(tag>0){return true;}else{return false;}}function edCloseAllTags(){var _11=edOpenTags.length;for(o=0;o<_11;o++){edInsertTag(edCanvas,edOpenTags[edOpenTags.length-1]);}}function edQuickLink(i,_13){if(i>-1){var _14="";if(edLinks[i].newWin==1){_14=" target=\"_blank\"";}var _15="<a href=\""+edLinks[i].URL+"\""+_14+">"+edLinks[i].display+"</a>";_13.selectedIndex=0;edInsertContent(edCanvas,_15);}else{_13.selectedIndex=0;}}function edSpell(_16){var _17="";if(document.selection){_16.focus();var sel=document.selection.createRange();if(sel.text.length>0){_17=sel.text;}}else{if(_16.selectionStart||_16.selectionStart=="0"){var _19=_16.selectionStart;var _1a=_16.selectionEnd;if(_19!=_1a){_17=_16.value.substring(_19,_1a);}}}if(_17==""){_17=prompt("Enter a word to look up:","");}if(_17!==null&&/^\w[\w ]*$/.test(_17)){window.open("http://www.answers.com/"+escape(_17));}}function edToolbar(){document.write("<div id=\"ed_toolbar\">");for(i=0;i<edButtons.length;i++){edShowButton(edButtons[i],i);}document.write("<input type=\"button\" id=\"ed_spell\" class=\"ed_button\" onclick=\"edSpell(edCanvas);\" title=\"Dictionary lookup\" value=\"lookup\" />");document.write("<input type=\"button\" id=\"ed_close\" class=\"ed_button\" onclick=\"edCloseAllTags();\" title=\"Close all open tags\" value=\"Close Tags\" />");document.write("</div>");}function edInsertTag(_1b,i){if(document.selection){_1b.focus();sel=document.selection.createRange();if(sel.text.length>0){sel.text=edButtons[i].tagStart+sel.text+edButtons[i].tagEnd;}else{if(!edCheckOpenTags(i)||edButtons[i].tagEnd==""){sel.text=edButtons[i].tagStart;edAddTag(i);}else{sel.text=edButtons[i].tagEnd;edRemoveTag(i);}}_1b.focus();}else{if(_1b.selectionStart||_1b.selectionStart=="0"){var _1d=_1b.selectionStart;var _1e=_1b.selectionEnd;var _1f=_1e;var _20=_1b.scrollTop;if(_1d!=_1e){_1b.value=_1b.value.substring(0,_1d)+edButtons[i].tagStart+_1b.value.substring(_1d,_1e)+edButtons[i].tagEnd+_1b.value.substring(_1e,_1b.value.length);_1f+=edButtons[i].tagStart.length+edButtons[i].tagEnd.length;}else{if(!edCheckOpenTags(i)||edButtons[i].tagEnd==""){_1b.value=_1b.value.substring(0,_1d)+edButtons[i].tagStart+_1b.value.substring(_1e,_1b.value.length);edAddTag(i);_1f=_1d+edButtons[i].tagStart.length;}else{_1b.value=_1b.value.substring(0,_1d)+edButtons[i].tagEnd+_1b.value.substring(_1e,_1b.value.length);edRemoveTag(i);_1f=_1d+edButtons[i].tagEnd.length;}}_1b.focus();_1b.selectionStart=_1f;_1b.selectionEnd=_1f;_1b.scrollTop=_20;}else{if(!edCheckOpenTags(i)||edButtons[i].tagEnd==""){_1b.value+=edButtons[i].tagStart;edAddTag(i);}else{_1b.value+=edButtons[i].tagEnd;edRemoveTag(i);}_1b.focus();}}}function edInsertContent(_21,_22){if(document.selection){_21.focus();sel=document.selection.createRange();sel.text=_22;_21.focus();}else{if(_21.selectionStart||_21.selectionStart=="0"){var _23=_21.selectionStart;var _24=_21.selectionEnd;_21.value=_21.value.substring(0,_23)+_22+_21.value.substring(_24,_21.value.length);_21.focus();_21.selectionStart=_23+_22.length;_21.selectionEnd=_23+_22.length;}else{_21.value+=_22;_21.focus();}}}function edInsertLink(_25,i,_27){if(!_27){_27="http://";}if(!edCheckOpenTags(i)){var URL=prompt("Enter the URL",_27);if(URL){edButtons[i].tagStart="<a href=\""+URL+"\">";edInsertTag(_25,i);}}else{edInsertTag(_25,i);}}function edInsertImage(_29){var _2a=prompt("Enter the URL of the image","http://");if(_2a){_2a="<img src=\""+_2a+"\" alt=\""+prompt("Enter a description of the image","")+"\" />";edInsertContent(_29,_2a);}} \ No newline at end of file
diff --git a/wp-includes/js/tw-sack.compressed.js b/wp-includes/js/tw-sack.compressed.js
deleted file mode 100644
index 3674c46..0000000
--- a/wp-includes/js/tw-sack.compressed.js
+++ /dev/null
@@ -1 +0,0 @@
-function sack(_1){this.xmlhttp=null;this.resetData=function(){this.method="POST";this.queryStringSeparator="?";this.argumentSeparator="&";this.URLString="";this.encodeURIString=true;this.execute=false;this.element=null;this.elementObj=null;this.requestFile=_1;this.vars=new Object();this.responseStatus=new Array(2);};this.resetFunctions=function(){this.onLoading=function(){};this.onLoaded=function(){};this.onInteractive=function(){};this.onCompletion=function(){};this.onError=function(){};this.onFail=function(){};};this.reset=function(){this.resetFunctions();this.resetData();};this.createAJAX=function(){try{this.xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e1){try{this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(e2){this.xmlhttp=null;}}if(!this.xmlhttp){if(typeof XMLHttpRequest!="undefined"){this.xmlhttp=new XMLHttpRequest();}else{this.failed=true;}}};this.setVar=function(_2,_3){this.vars[_2]=Array(_3,false);};this.encVar=function(_4,_5,_6){if(true==_6){return Array(encodeURIComponent(_4),encodeURIComponent(_5));}else{this.vars[encodeURIComponent(_4)]=Array(encodeURIComponent(_5),true);}};this.processURLString=function(_7,_8){encoded=encodeURIComponent(this.argumentSeparator);regexp=new RegExp(this.argumentSeparator+"|"+encoded);varArray=_7.split(regexp);for(i=0;i<varArray.length;i++){urlVars=varArray[i].split("=");if(true==_8){this.encVar(urlVars[0],urlVars[1]);}else{this.setVar(urlVars[0],urlVars[1]);}}};this.createURLString=function(_9){if(this.encodeURIString&&this.URLString.length){this.processURLString(this.URLString,true);}if(_9){if(this.URLString.length){this.URLString+=this.argumentSeparator+_9;}else{this.URLString=_9;}}this.setVar("rndval",new Date().getTime());urlstringtemp=new Array();for(key in this.vars){if(false==this.vars[key][1]&&true==this.encodeURIString){encoded=this.encVar(key,this.vars[key][0],true);delete this.vars[key];this.vars[encoded[0]]=Array(encoded[1],true);key=encoded[0];}urlstringtemp[urlstringtemp.length]=key+"="+this.vars[key][0];}if(_9){this.URLString+=this.argumentSeparator+urlstringtemp.join(this.argumentSeparator);}else{this.URLString+=urlstringtemp.join(this.argumentSeparator);}};this.runResponse=function(){eval(this.response);};this.runAJAX=function(_a){if(this.failed){this.onFail();}else{this.createURLString(_a);if(this.element){this.elementObj=document.getElementById(this.element);}if(this.xmlhttp){var _b=this;if(this.method=="GET"){totalurlstring=this.requestFile+this.queryStringSeparator+this.URLString;this.xmlhttp.open(this.method,totalurlstring,true);}else{this.xmlhttp.open(this.method,this.requestFile,true);try{this.xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");}catch(e){}}this.xmlhttp.onreadystatechange=function(){switch(_b.xmlhttp.readyState){case 1:_b.onLoading();break;case 2:_b.onLoaded();break;case 3:_b.onInteractive();break;case 4:_b.response=_b.xmlhttp.responseText;_b.responseXML=_b.xmlhttp.responseXML;_b.responseStatus[0]=_b.xmlhttp.status;_b.responseStatus[1]=_b.xmlhttp.statusText;if(_b.execute){_b.runResponse();}if(_b.elementObj){elemNodeName=_b.elementObj.nodeName;elemNodeName.toLowerCase();if(elemNodeName=="input"||elemNodeName=="select"||elemNodeName=="option"||elemNodeName=="textarea"){_b.elementObj.value=_b.response;}else{_b.elementObj.innerHTML=_b.response;}}if(_b.responseStatus[0]=="200"){_b.onCompletion();}else{_b.onError();}_b.URLString="";break;}};this.xmlhttp.send(this.URLString);}}};this.reset();this.createAJAX();} \ No newline at end of file
diff --git a/wp-includes/js/wp-ajax-js.php b/wp-includes/js/wp-ajax-js.php
index 3bb32ce..eada4ee 100644
--- a/wp-includes/js/wp-ajax-js.php
+++ b/wp-includes/js/wp-ajax-js.php
@@ -38,26 +38,26 @@ Object.extend(WPAjax.prototype, {
this.myResponseElement = p;
},
parseAjaxResponse: function() { // 1 = good, 0 = strange (bad data?), -1 = you lack permission
- if ( this.transport.responseXML && typeof this.transport.responseXML == 'object' ) {
+ if ( this.transport.responseXML && typeof this.transport.responseXML == 'object' && ( this.transport.responseXML.xml || 'undefined' == typeof this.transport.responseXML.xml ) ) {
var err = this.transport.responseXML.getElementsByTagName('wp_error');
if ( err[0] ) {
var msg = $A(err).inject( '', function(a, b) { return a + '<p>' + b.firstChild.nodeValue + '</p>'; } );
- this.myResponseElement.update('<div class="error">' + msg + '</div>');
+ Element.update(this.myResponseElement,'<div class="error">' + msg + '</div>');
return false;
}
return true;
}
var r = this.transport.responseText;
if ( isNaN(r) ) {
- this.myResponseElement.update('<div class="error"><p>' + r + '</p></div>');
+ Element.update(this.myResponseElement,'<div class="error"><p>' + r + '</p></div>');
return false;
}
var r = parseInt(r,10);
if ( -1 == r ) {
- this.myResponseElement.update("<div class='error'><p><?php _e("You don't have permission to do that."); ?></p></div>");
+ Element.update(this.myResponseElement,"<div class='error'><p><?php _e("You don't have permission to do that."); ?></p></div>");
return false;
} else if ( 0 == r ) {
- this.myResponseElement.update("<div class='error'><p><?php _e("Something strange happened. Try refreshing the page."); ?></p></div>");
+ Element.update(this.myResponseElement,"<div class='error'><p><?php _e("Something strange happened. Try refreshing the page."); ?></p></div>");
return false;
}
return true;