Commit ca482ba8 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* specify higher skin property.

* enable short-mode for several listboxes in a page.
* make it possible to click lines with empty titles.
* use http_cache for static objects.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25905 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ed108b37
......@@ -23,6 +23,16 @@
<value> <string>tokens</string> </value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>business_template_skin_layer_priority</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>float</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
......@@ -40,6 +50,10 @@
</tuple>
</value>
</item>
<item>
<key> <string>business_template_skin_layer_priority</string> </key>
<value> <float>150.0</float> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>erp5_mobile_ui</string> </value>
......
......@@ -9,6 +9,10 @@
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>erp5.css</string> </value>
......@@ -422,6 +426,14 @@ ul li:before{\n
margin: 15px;\n
}\n
\n
.AnchorColumn {\n
!important\n
border-style:none;\n
border-color:<dtml-var document_border_color>;\n
background-color:<dtml-var document_background_color>;\n
border-width:0;\n
}\n
\n
.button {\n
border-Top-Width: thin;\n
border-Top-Color: #3D6464;\n
......
......@@ -9,6 +9,10 @@
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>erp5.js</string> </value>
......@@ -97,17 +101,23 @@ else\n
}\n
}\n
\n
function simple_aff () {\n
var max_lenght = document.getElementById("listMax").value;\n
var max_item = document.getElementById("itemMax").value;\n
var check = document.getElementById("check");\n
for (b = 0; b < max_item; b++)\n
{\n
for (a = 0; a < max_lenght; a++)\n
function simple_aff(dynamic_check_field) {\n
\n
if(dynamic_check_field) \n
{\n
var foo = b + \'data\' + a;\n
var target = document.getElementById(foo);\n
form_id=dynamic_check_field.split("listbox_")\n
max_lenght_field_id=form_id[0]+"listbox_listMax"\n
max_item_field_id=form_id[0]+"listbox_itemMax";\n
check_field_id=form_id[0]+"listbox_check";\n
var max_lenght = document.getElementById(max_lenght_field_id).value;\n
var max_item = document.getElementById(max_item_field_id).value;\n
var check = document.getElementById(check_field_id);\n
\n
for (b = 0; b < max_item; b++)\n
{\n
for (a = 0; a < max_lenght; a++)\n
{ var foo =form_id[0]+ \'listbox_\' + b + \'data\' + a;\n
var target = document.getElementById(foo);\n
if (check.checked)\n
{\n
target.style.display = "none";\n
......@@ -117,50 +127,60 @@ for (a = 0; a < max_lenght; a++)\n
target.style.display = "inline";\n
}\n
}\n
}\n
}\n
}\n
}\n
\n
function applyHiddenType() {\n
\n
if (document.getElementById("listMax") && document.getElementById("fieldset_bottom"))\n
{\n
var max_lenght = document.getElementById("listMax").value;\n
var select = document.getElementById("select");\n
if (select)\n
{\n
var field = document.getElementById("fieldset_bottom");\n
var input\n
var foo = "input";\n
var foofoo\n
\n
if(document.getElementById("listbox_listMax"))\n
{ var max_item = document.getElementById("listbox_itemMax").value;\n
var max_lenght = document.getElementById("listbox_listMax").value;\n
hideListItems(\'\',max_item, max_lenght)\n
}\n
\n
field.style.border = "solid 0px";\n
for (a = 0; a < max_lenght; a++)\n
{\n
foofoo = foo + a;\n
if (document.getElementById(foofoo))\n
{\n
preinit = document.getElementById(foofoo);\n
preinit.value = "";\n
/* XXX Hard code, get the number of box with show/hide mode */\n
for (i = 0; i < 5; i++) {\n
form_id = "x"+i+"_"\n
var max_lenght_field_id=form_id+"listbox_listMax"\n
var max_item_field_id=form_id+"listbox_itemMax"\n
if(document.getElementById(max_lenght_field_id) && document.getElementById(max_item_field_id) )\n
{ \n
var max_item = document.getElementById(max_item_field_id).value;\n
var max_lenght = document.getElementById(max_lenght_field_id).value;\n
hideListItems(form_id,max_item, max_lenght)\n
}\n
}\n
affShortcuts ();\n
}\n
\n
for (a = 0; a < max_lenght; a++)\n
{\n
if (select.options[select.selectedIndex].value != a)\n
{\n
input = document.getElementById(a);\n
input.style.display = "none";\n
}\n
else\n
function hideListItems(form_id, max_item, max_length)\n
{\n
check=form_id+"listbox_check";\n
for (b = 0; b < max_item; b++)\n
{\n
input = document.getElementById(a);\n
input.style.display = "inline";\n
}\n
for (a = 0; a < max_length; a++)\n
{ var foo =form_id+ \'listbox_\' + b + \'data\' + a;\n
var target = document.getElementById(foo);\n
if(target) \n
target.style.display = "none";\n
}\n
affShortcuts ();\n
}\n
}\n
\n
function validateSearch(field_id)\n
{\n
document.getElementById(field_id).value=\'\';\n
this.form.submit();\n
}\n
\n
function isSeachSelectedProperty(index_id)\n
{ \n
var select = document.getElementById(select);\n
if(select.options[select.selectedIndex].value == index_id)\n
return 1\n
else \n
return 0\n
}\n
\n
function getTop(MyObject)\n
......
......@@ -90,7 +90,7 @@ It is possible to specify a group id and a group title by naming a group followi
<tal:block\n
tal:define="field_errors python: request.get(\'field_errors\', {});\n
dummy python: request.set(\'here\', here);\n
group_list python: form.Form_getGroupTitleAndId();\n
\t\tgroup_list python: form.Form_getGroupTitleAndId();\n
gid_list python: \' \'.join([x[\'gid\'] for x in group_list if x!=\'hidden\']);\n
field_render nocall: here/field_render/macros/field_render">\n
\n
......@@ -109,13 +109,13 @@ It is possible to specify a group id and a group title by naming a group followi
</div>\n
</fieldset>\n
<p tal:condition="python: gid.find(\'right\') >= 0 or (gid.find(\'left\') >= 0 and \'right\' not in gid_list)" class="clear"/>\n
</tal:block>\n
<p class="clear">&nbsp;</p>\n
</tal:block>\n
<div class="div_gtt" align="middle">\n
<a class="link_white" tal:attributes="href python: \'%s%s%s%s\' % (context.REQUEST.URL0,\'?\', context.REQUEST.QUERY_STRING,\'#TOP\')">////////// Top of page \\\\\\\\\\\\\\\\\\\\</a>\n
</div>\n
</tal:block>\n
</tal:block>\n
<p class="clear"></p>\n
</tal:block>\n
</tal:block>
]]></string> </value>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Image" module="OFS.Image"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts28410697.33</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>line_clickable.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAYAAADtc08vAAAA9UlEQVQoz6WTIVLEQBBFfyiOkjPg
uQACh1uFAxeFRmBQVGEoDGILj4rkCnsVYPr/P2EQE0NVQjbs2K73+vdMT9O2LQ45R3OF7qkvV49v
5V+C7rkvYcEiNnfbslpAGRYRFLIDFzcPZZXAIkgjKzCkT5DE2fVt2VsQFKyEgQmSkBUgidNNV/ZO
MDBBERADCsEKmMTJ+eUvyfGU4Ds+YAo2IQl2gkmIAYvLCTTCJmF+VViB7DrOYgKrdhMTTNcUQVgJ
u/61WRaQkAm5XqYZk/CsgBFwJvI4s8lJeD5BJhxpfIHArt82qxbp/eW+keoq/wUDQHPob/wB9jzc
u4hDo30AAAAASUVORK5CYII=</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>15</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>302</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>16</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -9,6 +9,10 @@
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>test.js</string> </value>
......
39
\ No newline at end of file
40
\ 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