Commit 06b10231 authored by Fabien Morin's avatar Fabien Morin

improve showPopik function to display popu with a delay (default is 500 ms)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26375 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fe11cace
......@@ -27,13 +27,18 @@
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>function showPopik(dom_id, what){\n
<value> <string>function showPopik(dom_id, what, delay){\n
if (delay == null){\n
delay = 500;\n
}\n
obj = getElement(dom_id);\n
if(what==true){\n
obj.style.display=\'block\';}\n
setTimeout(function() {obj.style.display=\'block\';}, delay)\n
}\n
else{\n
obj.style.display=\'none\';}\n
}</string> </value>
}\n
</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
774
\ No newline at end of file
775
\ 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