Commit 5df855a3 authored by Rafael Monnerat's avatar Rafael Monnerat

Fix plural and minor fix for cleanForPrince

Ignore clean up when iframe is not present
parent 5105397c
......@@ -50,7 +50,11 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>return str(context.getTitle()) + \'\\n\' + str(context.getShortTitle()) + \'\\n\' + str(context.getDescription()) + \'\\n\' + str(context.getContributorList()) + \'\\n\' + str(context.getEffectiveDate());\n
<value> <string>return "\\n".join([str(context.getTitle()),\n
str(context.getShortTitle()),\n
str(context.getDescription()), \n
str(context.getContributorList()),\n
str(context.getEffectiveDate())])\n
</string> </value>
</item>
<item>
......@@ -59,7 +63,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>TestPage_getDetails</string> </value>
<value> <string>TestPage_getDetail</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -57,6 +57,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
for(var i = 0; i < n; i++){\n
var img = images.eq(i);\n
var src = img.attr(\'src\').split(\'?format\')[0].split(\'/\');\n
\n
var extension = img.attr(\'type\');\n
if(extension == undefined)\n
extension = "png";\n
......@@ -66,6 +67,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
}\n
var text = temp.html();\n
var result = "", tagName = "", c = "", chr = "";\n
if (text == null) {\n
return false;\n
}\n
var n = text.length;\n
var tag = false, tagNameParsing = false;\n
for(var i = 0; i < n; i++){\n
......@@ -173,7 +177,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
}\n
\n
function fetchTextInfo(hasToC, txt){\n
$.get(\'TestPage_getDetails\', function(details, status, xhr){\n
$.get(\'TestPage_getDetail\', function(details, status, xhr){\n
details = details.split(\'\\n\');\n
var title = details[0], shortTitle = details[1], description = details[2], authors = parseList(details[3]);\n
var year = details[4].split(\'/\')[0];\n
......
19
\ No newline at end of file
20
\ 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