Commit 7d438bae authored by Gabriel Monnerat's avatar Gabriel Monnerat

- remove blank spaces

- use space instead of tabs

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45713 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ae5c2042
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="DTMLDocument" module="OFS.DTMLDocument"/>
<global name="DTMLDocument" module="OFS.DTMLDocument"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -52,51 +49,50 @@ $.extend({\n ...@@ -52,51 +49,50 @@ $.extend({\n
\n \n
var checkState_call_count = 0\n var checkState_call_count = 0\n
function checkState(message){\n function checkState(message){\n
\n
checkState_call_count += 1\n checkState_call_count += 1\n
var checkState_call_str = ["",".","..","..."]\n var checkState_call_str = ["",".","..","..."]\n
$("#transition-message").html(message+checkState_call_str[checkState_call_count%4])\n $("#transition-message").html(message+checkState_call_str[checkState_call_count%4])\n
$.get("Document_getPropertiesAsJSON", { }, function(data, textStatus, XMLHttpRequest){\n $.get("Document_getPropertiesAsJSON", {}, function(data, textStatus, XMLHttpRequest){\n
if (textStatus == "timeout" || textStatus == "error" || textStatus == "parsererror")\n if (textStatus == "timeout" || textStatus == "error" || textStatus == "parsererror"){\n
{\n
$("title").html("Error during conversion");\n $("title").html("Error during conversion");\n
$("#transition-message").html("An error occurs during the process. Please resend your file");\n $("#transition-message").html("An error occurs during the process. Please resend your file");\n
}\n }\n
else{\n else {\n
//TextStatus is "notmodified","success"\n //TextStatus is "notmodified","success"\n
json = jQuery.parseJSON( data );\n json = jQuery.parseJSON( data );\n
if ((json.processing == "converted") || (json.processing == "conversion_failed") || (json.processing == "empty"))\n if ((json.processing == "converted") || (json.processing == "conversion_failed") || (json.processing == "empty")){\n
{\n
$("title").html("Finish");\n $("title").html("Finish");\n
$("#transition-message").html("The conversion process is finish. You will be redirect in 3 seconds.");\n $("#transition-message").html("The conversion process is finish. You will be redirect in 3 seconds.");\n
setTimeout("$(location).attr(\'href\',\'"+json.permanent_url+"\')",3000);\n setTimeout("$(location).attr(\'href\',\'"+json.permanent_url+"\')", 3000);\n
}\n }\n
else if (json.processing == "process_error")\n else {\n
{\n if (json.processing == "process_error") {\n
$("title").html("Error during conversion");\n $("title").html("Error during conversion");\n
$("#transition-message").html("An error occurs during the process. Please resend your file");\n $("#transition-message").html("An error occurs during the process. Please resend your file");\n
}\n }\n
else\n else {\n
{\n setTimeout("checkState(\'"+message+"\')", 500);\n
//Wait 1/2s and recall the function\n }\n
setTimeout("checkState(\'"+message+"\')",500);\n
}\n }\n
}\n }\n
});\n });\n
}\n }\n
\n \n
function createBookmark(title,url) {\n function createBookmark(title,url) {\n
\tif ($.browser.mozilla == true) { // Mozilla Firefox Bookmark\n if ($.browser.mozilla == true) {\n
\t\twindow.sidebar.addPanel(title, url,"");\n window.sidebar.addPanel(title, url, "");\n
\t} else if($.browser.msie == true ) { // IE Favorite\n } \n
\t\twindow.external.AddFavorite( url, title);\n else {\n
} else { //Opera or other\n if($.browser.msie == true) {\n
alert(\'Please use CTRL + D to bookmark this website.\'); \n window.external.AddFavorite( url, title);\n
} \n }\n
else {\n
alert(\'Please use CTRL + D to bookmark this website.\'); \n
}\n
}\n
}\n }\n
\n \n
function generateLink(id,title,url)\n function generateLink(id, title, url){\n
{\n
var link_title ;\n var link_title ;\n
if ($.browser.msie == true) {\n if ($.browser.msie == true) {\n
link_title = "Add to Favorites";\n link_title = "Add to Favorites";\n
...@@ -115,14 +111,13 @@ function generateLink(id,title,url)\n ...@@ -115,14 +111,13 @@ function generateLink(id,title,url)\n
}\n }\n
\n \n
function contentMaximise(){\n function contentMaximise(){\n
$("#content").removeClass("twocolumns");\n $("#content").removeClass("twocolumns");\n
$("#sidebar").hide();\n $("#sidebar").hide();\n
}\n }\n
\n \n
function contentMinimise(){\n function contentMinimise(){\n
$("#content").addClass("twocolumns");\n $("#content").addClass("twocolumns");\n
\n $("#sidebar").show();\n
$("#sidebar").show();\n
} }
]]></string> </value> ]]></string> </value>
......
4 5
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment