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 @@ ...@@ -23,6 +23,16 @@
<value> <string>tokens</string> </value> <value> <string>tokens</string> </value>
</item> </item>
</dictionary> </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> </tuple>
</value> </value>
</item> </item>
...@@ -40,6 +50,10 @@ ...@@ -40,6 +50,10 @@
</tuple> </tuple>
</value> </value>
</item> </item>
<item>
<key> <string>business_template_skin_layer_priority</string> </key>
<value> <float>150.0</float> </value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>erp5_mobile_ui</string> </value> <value> <string>erp5_mobile_ui</string> </value>
......
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
<value> <string>erp5.css</string> </value> <value> <string>erp5.css</string> </value>
...@@ -422,6 +426,14 @@ ul li:before{\n ...@@ -422,6 +426,14 @@ ul li:before{\n
margin: 15px;\n margin: 15px;\n
}\n }\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 .button {\n
border-Top-Width: thin;\n border-Top-Width: thin;\n
border-Top-Color: #3D6464;\n border-Top-Color: #3D6464;\n
......
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
<value> <string>erp5.js</string> </value> <value> <string>erp5.js</string> </value>
...@@ -97,17 +101,23 @@ else\n ...@@ -97,17 +101,23 @@ else\n
}\n }\n
}\n }\n
\n \n
function simple_aff () {\n function simple_aff(dynamic_check_field) {\n
var max_lenght = document.getElementById("listMax").value;\n \n
var max_item = document.getElementById("itemMax").value;\n if(dynamic_check_field) \n
var check = document.getElementById("check");\n
for (b = 0; b < max_item; b++)\n
{\n
for (a = 0; a < max_lenght; a++)\n
{\n {\n
var foo = b + \'data\' + a;\n form_id=dynamic_check_field.split("listbox_")\n
var target = document.getElementById(foo);\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 \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 if (check.checked)\n
{\n {\n
target.style.display = "none";\n target.style.display = "none";\n
...@@ -117,50 +127,60 @@ for (a = 0; a < max_lenght; a++)\n ...@@ -117,50 +127,60 @@ for (a = 0; a < max_lenght; a++)\n
target.style.display = "inline";\n target.style.display = "inline";\n
}\n }\n
}\n }\n
}\n }\n
}\n
}\n }\n
\n \n
function applyHiddenType() {\n function applyHiddenType() {\n
\n \n
if (document.getElementById("listMax") && document.getElementById("fieldset_bottom"))\n if(document.getElementById("listbox_listMax"))\n
{\n { var max_item = document.getElementById("listbox_itemMax").value;\n
var max_lenght = document.getElementById("listMax").value;\n var max_lenght = document.getElementById("listbox_listMax").value;\n
var select = document.getElementById("select");\n hideListItems(\'\',max_item, max_lenght)\n
if (select)\n }\n
{\n
var field = document.getElementById("fieldset_bottom");\n
var input\n
var foo = "input";\n
var foofoo\n
\n
\n \n
field.style.border = "solid 0px";\n /* XXX Hard code, get the number of box with show/hide mode */\n
for (a = 0; a < max_lenght; a++)\n for (i = 0; i < 5; i++) {\n
{\n form_id = "x"+i+"_"\n
foofoo = foo + a;\n var max_lenght_field_id=form_id+"listbox_listMax"\n
if (document.getElementById(foofoo))\n var max_item_field_id=form_id+"listbox_itemMax"\n
{\n if(document.getElementById(max_lenght_field_id) && document.getElementById(max_item_field_id) )\n
preinit = document.getElementById(foofoo);\n { \n
preinit.value = "";\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
}\n }\n
affShortcuts ();\n
}\n
\n \n
for (a = 0; a < max_lenght; a++)\n function hideListItems(form_id, max_item, max_length)\n
{\n {\n
if (select.options[select.selectedIndex].value != a)\n check=form_id+"listbox_check";\n
{\n for (b = 0; b < max_item; b++)\n
input = document.getElementById(a);\n
input.style.display = "none";\n
}\n
else\n
{\n {\n
input = document.getElementById(a);\n for (a = 0; a < max_length; a++)\n
input.style.display = "inline";\n { var foo =form_id+ \'listbox_\' + b + \'data\' + a;\n
}\n var target = document.getElementById(foo);\n
if(target) \n
target.style.display = "none";\n
}\n }\n
affShortcuts ();\n
}\n }\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
\n \n
function getTop(MyObject)\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 ...@@ -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:block\n
tal:define="field_errors python: request.get(\'field_errors\', {});\n tal:define="field_errors python: request.get(\'field_errors\', {});\n
dummy python: request.set(\'here\', here);\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 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 field_render nocall: here/field_render/macros/field_render">\n
\n \n
...@@ -109,13 +109,13 @@ It is possible to specify a group id and a group title by naming a group followi ...@@ -109,13 +109,13 @@ It is possible to specify a group id and a group title by naming a group followi
</div>\n </div>\n
</fieldset>\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 <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 <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 <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 </div>\n
</tal:block>\n </tal:block>\n
</tal:block>\n
<p class="clear"></p>\n
</tal:block>\n
</tal:block> </tal:block>
]]></string> </value> ]]></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 @@ ...@@ -9,6 +9,10 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
<value> <string>test.js</string> </value> <value> <string>test.js</string> </value>
......
39 40
\ 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