Commit 0d4d024f authored by Marco Mariani's avatar Marco Mariani

added script parameters for testing, disabled adding column with TAB key

parent d76ca7a4
......@@ -81,7 +81,7 @@ answer = context.newContent(\n
comment = comment,\n
string_value = string_answer,\n
resource = question.getRelativeUrl(),\n
start_date = session[\'start_date\'],\n
start_date = start_date or session[\'start_date\'],\n
stop_date = DateTime(),\n
category_dict = category_dict,\n
portal_type = "Answer")\n
......@@ -103,7 +103,7 @@ return context.Base_redirect(redirect_to, keep_items = dict(portal_status_messag
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>no_answer_reason = \'\', comment = \'\', string_answer = \'\', batch_mode = False, **kw</string> </value>
<value> <string>no_answer_reason = \'\', comment = \'\', string_answer = \'\', batch_mode = False, start_date=None, **kw</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
......
......@@ -8,7 +8,7 @@
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts82691158.55</string> </value>
<value> <string>ts83568190.56</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -30,7 +30,6 @@
// XXX TODO: reallow sheet resizing (CSS issue?)\n
// XXX TODO: support Short Title and Description\n
// XXX TODO: discard changes?\n
// XXX TODO: disable addition of columns with TAB key\n
\n
\n
var jquery_sheet_save;\n
......@@ -179,7 +178,9 @@ jQuery(document).ready(function ($) {\n
})\n
.done(function(data, textStatus, jqXHR) {\n
update_category_title_saved();\n
window.clickSaveButton && clickSaveButton(\'Answer_edit\');\n
if (window.clickSaveButton) {\n
clickSaveButton(\'Answer_edit\');\n
}\n
event.target.submit();\n
})\n
.fail(function(data, textStatus, errorThrown) {\n
......@@ -461,6 +462,7 @@ jQuery(document).ready(function ($) {\n
title: \'Categories\',\n
autoFiller: false,\n
resizableSheet: false,\n
autoAddCells: false,\n
sheetAddRow: update_category_title_changed,\n
sheetAddColumn: update_category_title_changed,\n
sheetRename: update_category_title_changed,\n
......@@ -570,11 +572,11 @@ jQuery(document).ready(function ($) {\n
</item>
<item>
<key> <string>size</string> </key>
<value> <int>18689</int> </value>
<value> <int>18730</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>jquery_sheet_main.js</string> </value>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -58,9 +58,9 @@
import json\n
from Products.PythonScripts.standard import html_quote\n
request = container.REQUEST\n
response = request.response\n
response = request.response\n
\n
data = request.get(\'BODY\')\n
data = data or request.get(\'BODY\')\n
\n
ret = {}\n
errors = []\n
......@@ -127,7 +127,7 @@ return printed\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
<value> <string>data=None</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
86
\ No newline at end of file
87
\ 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