Commit 340d2c45 authored by Sebastien Robin's avatar Sebastien Robin

create new bt for storing javascripts allowing to

improve user experience

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39044 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8e64841f
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>erp5_dhtml_style</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLMethod" module="OFS.DTMLMethod"/>
</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_dhtml_style.js</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
/*\n
Copyright (c) 2010 Nexedi SA and Contributors. All Rights Reserved.\n
Sebastien Robin <seb@nexedi.com>\n
\n
This program is Free Software; you can redistribute it and/or\n
modify it under the terms of the GNU General Public License\n
as published by the Free Software Foundation; either version 2\n
of the License, or (at your option) any later version.\n
\n
This program is distributed in the hope that it will be useful,\n
but WITHOUT ANY WARRANTY; without even the implied warranty of\n
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n
GNU General Public License for more details.\n
\n
You should have received a copy of the GNU General Public License\n
along with this program; if not, write to the Free Software\n
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
*/\n
\n
/*\n
Note: this JavaScript is used to make parallel list field more user friendly\n
*/\n
\n
$(function() {\n
\n
// Make the parallel list field adding more elements automatically.\n
$(\'.input:has(.extensible_parallel_list_field)\').change(function(event) {\n
event.preventDefault();\n
var select_element = $(this)\n
var add_element = true;\n
var parent = select_element.parent()\n
var select_list = parent.find(\'select\')\n
for(var x = select_list.length; x;) {\n
current_select = select_list[--x]\n
if (current_select.selectedIndex == 0)\n
{\n
add_element = false;\n
}\n
}\n
if (add_element) {\n
parent.append(jQuery(\'<label>&nbsp;</label>\'))\n
var cloned_element = $(select_element).clone(true)\n
cloned_element.find(\'select\')[0].selectedIndex = 0\n
cloned_element.appendTo(parent)\n
parent.append(jQuery(\'<p class="clear">\'))\n
}\n
});\n
\n
});
]]></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
2010-10-12 Seb
* Create dhtml_style business template
\ No newline at end of file
Copyright (c) 2010 Nexedi SA
\ No newline at end of file
erp5_xhtml_style
\ No newline at end of file
On top of xhtml style, provide more interactions and animations, mostly thanks to javascripts.
\ No newline at end of file
GPL
\ No newline at end of file
seb
\ No newline at end of file
1
\ No newline at end of file
erp5_dhtml_style
\ No newline at end of file
erp5_dhtml_style
\ No newline at end of file
5.4.7
\ 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