[6/08/2011 20:54:08] JavaScript -
http://www.head-fi.org/classifieds/listing/add/forum_id/6550
Event thread: load
Uncaught exception: TypeError: Cannot convert 'a.one(e)' to object
Error thrown at line 9, column 1884 in (A, y, x) in
http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js:
throw (y||new Error(A));
called from line 8, column 9752 in (z, w, x) in
http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js:
this.error("use callback error",y,x);
called from line 8, column 11225 in (V) in
http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js:
x._notify(A,T,y);
called from line 21, column 8181 in (Y, X) in
http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js:
L.call(this.context,{msg:Y,data:this.data,success:X});
called via Function.prototype.call() from line 21, column 8819 in () in
http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js:
Y._finish(b,c);
called from line 22, column 2113 in (a) in
http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js:
l._onSuccess();
called from line 21, column 11091 in (Z, a, Y, X) in
http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js:
this.loadNext();
called from line 21, column 11112 in () in
http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js:
L._insert(null,null,K);
called via Function.prototype.call() from line 22, column 2072 in (a) in
http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js:
l._internalCallback=null;
called from line 21, column 11091 in (Z, a, Y, X) in
http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js:
this.loadNext();
Error initially occurred at line 1, column 7704 in c(e) in
http://www.head-fi.org/mini/1312591941/classifieds.js:
a.one(e).append($H.template("addImagesHtml"));
called from line 1, column 10565 in (e) in
http://www.head-fi.org/mini/1312591941/classifieds.js:
return new c(e)
called from line 1, column 11429 in () in
http://www.head-fi.org/mini/1312591941/classifieds.js:
var e=null,l=null,g=null,w=true,d=0,h=0,v=null,f=null,u=$H.imageUploader.getInstance();
called from line 1, column 11120 in (c) in
http://www.head-fi.org/mini/1312591941/classifieds.js:
var b=(function(){var e=null,l=null,g=null,w=true,d=0,h=0,v=null,f=null,u=$H.imageUploader.getInstance();$H.editor.init({toolbar:"classified"});function i(z){c.one("p.error").set("innerHTML",z);return false}function p(){var D=null;i("");var z=e.one(".name input").get("value").trim();if(!z){return i("You must provide a name.")}var C=$H.editor.getData().trim();if(!C){return i("You must provide a description.")}var A=e.one(".type select").get("value");var B="0";if(A!=2&&A!=4){B=e.one(".price input").get("value").trim()}if(!B.match(/^(\d+,?)+(.[\d]+)?$/)){return i("You must provide a valid price.")}e.one(".price input").set("value",B.replace(/,/g,""));return true}function s(){var A={};e.all("input,textarea,select").each(function(D,B){var C=D.get("type");if(C=="hidden"||C=="submit"){return}A[D.get("name")]={element:D,type:C,tagName:D.get("tagName"),value:D.get("value"),checked:D.get("checked"),disabled:D.get("disabled")}});if(A["Classified[ship_to]"]){var z=e.one(".ship_to input[type=radio]:checked");if(z){A["Classified[ship_to]"].value=z.get("value");A["Classified[ship_to]"].disabled=z.get("disabled")}}return A}function n(B){for(var z in B){var A=B[z];if(A.type=="checkbox"){A.element.set("checked",A.checked)}else{if(z.match("body")){$H.editor.setData(A.value)}else{A.element.set("value",A.value)}}if(z=="Classified[type]"){if(A.value==2||A.value==4){c.all("#classifiedPrice").hide()}if(A.value==5){c.all(".ship_to").hide()}}}}function q(){e.all("input[type=text]").each(function(z){z.set("value","")});e.all("select").each(function(z){z.set("value",z.one("option").get("value"))});e.all("input[type=checkbox]").each(function(z){z.set("checked",false)});$H.editor.setData("");a=false}function y(D){var F={},B=[];for(var z in D){var E=D[z];if(z.match("best_offer")){F[z]=E.checked?" or best offer":""}else{if(z.match("tags")){if(E.checked){B.push(PARAM.tags[z.match(/\d+/)[0]])}}else{if(z.match("type")){F[z]=PARAM.types[E.value];F.ship_to_display=E.value==5?"none":"block"}else{if(z.match("ship_to")&&!E.checked){F[z]=1}else{F[z]=E.value}}}}}if(B.length>0){F["Classified[ship_to]"]=B.join(", ")}else{if(F["Classified[ship_to]"]){var A=F["Classified[ship_to]"],C=PARAM.shipping_options[A];if(A==2){C+=" "+F["Classified[ship_to_details]"]}F["Classified[ship_to]"]=C}else{F["Classified[ship_to]"]=PARAM.shipping_options[1]}}F.display=l.hasClass("history-visible")?"block":"none";l.append($H.template("historyEntry",F));d++;l.one(".title .num-items").set("innerHTML","
"+d+" "+((d>1)?" items have":" item has"));l.setStyle("display","block");v.stop();l.one(".title").setStyle("background-color","#FFF9DA");setTimeout(function(){v.run()},3000);return l.one(".entry:last-child")}function t(){window.scrollTo(0,c.one("h1").getXY()[1]-8)}function k(D,B){var A=u;if(!p()){return t()}u.initUpload();var C;if(B){f=s();C=y(f);A.setEntry(C);var F=l.one(".title .loading");F.setStyle("display","inline");c.all("#edit-images").setStyle("display","none");u=$H.imageUploader.getInstance()}else{$H.loadingPanel.show()}function E(G){var H=(G&&G.message)?G.message:null;if(B){C.addClass("error");C.one("div.edit").set("innerHTML",((H)?"Error: "+H:"An error occurred")+" (please resubmit the form below)");h++;l.one(".title .error").set("innerHTML"," ("+h+" item"+(h>1?"s":"")+" failed)");n(f);i(H)}else{i(H);$H.loadingPanel.hide()}}function z(H){if(B){var I=C.one(".name .content");I.set("innerHTML",$H.template("historyName",{thread_url:H.thread_url,name:I.get("innerHTML")}));var L=C.one("div.edit");L.set("innerHTML",$H.template("historyEdit",{classified_id:H.classified_id}))}var J=$H.url("/gallery/image/add/album_id/"+H.album_id+"/hash/"+PARAM.hash+"/user_id/"+PARAM.user_id);if(B){if(PARAM.edit){var K=C.one(".photos .content"),G=c.all("#edit-images .classified-thumb");if(G._nodes.length>0){K.removeClass("notloaded");K.set("innerHTML","");G.each(function(M){K.append(M)})}c.all("#classified-id").remove();c.all("#edit-images").remove()}if(!A.hasImages()){C.one(".photos .content").set("innerHTML","
No photos uploaded")}A.uploadAll(J,function(){A.reset()});if(w){e.all(".ship_to").show();e.all("#classifiedPrice").show()}}else{A.uploadAll(J,function(){a=$H.imageUploader.changes=$H.imageUploader.uploading=false;window.location=$H.url("/classifieds/listing/complete/forum_id/"+PARAM.forum_id)})}}c.io($H.url("/classifieds/listing/create/forum_id/"+PARAM.forum_id),{method:"POST",form:{id:e},on:{complete:function(H,G){if(B){F.setStyle("display","none")}},success:function(I,H){var G=$H.handleJsonResponse(H.responseText);if(typeof G.error!="undefined"){G.status="error";G.message=G.error}if(typeof G.status!="undefined"&&G.status=="error"){E(G)}else{z(G)}},failure:function(H,G){E()}}});if(B){g.setStyle("display","block");if(g.one("input[type=checkbox]").get("checked")){w=false}else{w=true;q()}t()}}function j(){l.addClass("history-visible");l.all(".entry").show();l.one(".title a").addClass("smminus");l.one(".title a").removeClass("smplus");l.one(".hide-show").set("innerHTML","hide")}function o(){l.removeClass("history-visible");l.all(".entry").hide();l.one(".title a").removeClass("smminus");l.one(".title a").addClass("smplus");l.one(".hide-show").set("innerHTML","show")}function m(){if(l.hasClass("history-visible")){o()}else{j()}}function x(A){var z=A.target.get("value");if(z==2||z==4){e.all("#classifiedPrice").hide();if(z==4){e.all("input.price").set("value","0")}}else{e.all("#classifiedPrice").show()}if(z==5){e.all(".ship_to").hide()}else{e.all(".ship_to").show()}}function r(z){c.one("#hiddenSubscribeSelect").set("value",z.target.get("value"))}return{init:function(){e=c.one("#new_classified_form");l=c.one("#classified-history");g=c.one("#copy-from-previous");e.on("submit",k);g.all("input, label").on("click",function(z){if(w&&f){n(f)}});v=new c.Anim({node:l.one(".title"),from:{backgroundColor:"#FFF9DA"},to:{backgroundColor:l.getComputedStyle("backgroundColor")},duration:1});l.one(".title").on("click",m);l.one(".title a").on("click",function(z){z.preventDefault()});e.one(".type select").on("change",x);x({target:e.one(".type select")});e.all(".ship_to input[type=radio]").on("click",function(z){if(z.target.get("value")==2){e.one(".ship_to input[type=text]").removeAttribute("disabled")}else{e.one(".ship_to input[type=text]").set("value","").setAttribute("disabled",true)}});c.one("#submit").on("click",function(z){z.halt();if(c.one("#classified-id")){_gaq.push(["b._trackPageview","/classifieds/listing/edit/complete"])}else{_gaq.push(["b._trackPageview","/classifieds/listing/add/complete"])}setTimeout(function(){k(z)},100)});c.one("#submit-and-add-another").on("click",function(z){z.halt();_gaq.push(["b._trackPageview","/classifieds/listing/add/complete_and_add"]);setTimeout(function(){k(z,true)},100)});e.all("#edit-images .photo input[type=checkbox]").on("change",function(B){var A=B.target,z=A.ancestor(".controls").one("input[type=radio]");if(A.get("checked")){z.setAttribute("disabled",true).set("checked",false)}else{z.removeAttribute("disabled")}});c.one("#subscribeSelect").on("change",r);r({target:c.one("#subscribeSelect")});e.all("input,textarea,select,").on("change",function(){a=true});c.one("#subscribeSelect").on("change",function(){a=true})}}})();
called from line 8, column 9732 in (z, w, x) in
http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js:
z(this,w);
called from line 8, column 9472 in (B, A) in
http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js:
B._notify(z,A,w);
called from line 8, column 9732 in (z, w, x) in
http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js:
z(this,w);
called from line 8, column 11225 in (V) in
http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js:
x._notify(A,T,y);
called from line 21, column 8181 in (Y, X) in
http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js:
L.call(this.context,{msg:Y,data:this.data,success:X});
called via Function.prototype.call() from line 21, column 8819 in () in
http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js:
Y._finish(b,c);