Commit 2ea53d4f authored by Gabriel Monnerat's avatar Gabriel Monnerat

2010-12-16 gabriel

* Added getSource method

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41486 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f3bbf95f
......@@ -2696,6 +2696,18 @@ jQuery.sheet = {\n
w.document.write("\074html\076\074body\076\074xmp\076" + o + "\\n\074/xmp\076\074/body\076\074/html\076");\n
w.document.close();\n
},\n
getSource: function(pretty) {\n
var sheetClone = jS.sheetDecorateRemove(true);\n
var s = "";\n
if (pretty) {\n
jQuery(sheetClone).each(function() {\n
s += jS.HTMLtoPrettySource(this);\n
});\n
} else {\n
s += jQuery(\'\074div /\076\').html(sheetClone).html();\n
}\n
return s;\n
},\n
viewSource: function(pretty) { /* prints the source of a sheet for a user to see\n
pretty: bool, makes html a bit easier for the user to see;\n
*/\n
......
2010-12-16 gabriel
* Added getSource method
2010-12-15 gabriel
* Upgrade to the last version
......
7
\ No newline at end of file
9
\ 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