textStatus: "+o.textStatus+"
errorThrow: "+o.errorThrown),$("#file-upload-msg-popup").popup("open")},done:function(e,o){console.log("Upload done"),o.result.result?($("#progress-bg").addClass("done"),$("#progress-bg").css("width","auto"),document.location.href="/newfile/edit/"+o.result.id):($("#file-upload-msg-popup p").text(o.result.message),$("#file-upload-msg-popup").popup("open"))},progressall:function(e,o){o=parseInt(o.loaded/o.total*100,10);(o=o<5?5:o)<100?($("#progress-bg").css("width",o+"%"),$("#progress-percent span").text(o+"%")):($("#progress-bg").addClass("done"),$("#progress-bg").css("width","auto"),$("#progress-percent span").text("100%"))},add:function(e,o){$("#file-upload .ui-submit").click(function(){console.log("Uploading..."),$("#progress-percent span").text("Uploading ..."),$("#file-upload-result").show(),$("#file-upload").hide(),o.submit()})}}),$("#file-upload form").fileupload("option","redirect","http://m.torbobit.net/filedata?data=%s"),void 0===window.XMLHttpRequestUpload||void 0===window.FileReader||void 0===window.FormData)&&$("#file-upload form").fileupload("option","forceIframeTransport",!0)})