Commit b2a3b062 authored by Ivan Tyagov's avatar Ivan Tyagov

Unbind always.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42628 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ed297011
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts95875565.52</string> </value> <value> <string>ts95876458.14</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -423,6 +423,7 @@ function initialize(){\n ...@@ -423,6 +423,7 @@ function initialize(){\n
var minimize = box.find("a.block-minimize").first(); \n var minimize = box.find("a.block-minimize").first(); \n
var minimize_wrapper = box.find("div.minimize_wrapper").first(); \n var minimize_wrapper = box.find("div.minimize_wrapper").first(); \n
if(minimize){\n if(minimize){\n
minimize.unbind("click");\n
minimize.bind("click", function (){\n minimize.bind("click", function (){\n
if (is_knowledge_template_used){showCreateDefaultKnowledgePadWarningMessage();}\n if (is_knowledge_template_used){showCreateDefaultKnowledgePadWarningMessage();}\n
else{\n else{\n
...@@ -440,11 +441,13 @@ function initialize(){\n ...@@ -440,11 +441,13 @@ function initialize(){\n
});}\n });}\n
\n \n
if(edit){\n if(edit){\n
edit.unbind("click");\n
edit.bind("click", function (){\n edit.bind("click", function (){\n
if (is_knowledge_template_used){showCreateDefaultKnowledgePadWarningMessage();}\n if (is_knowledge_template_used){showCreateDefaultKnowledgePadWarningMessage();}\n
else{edit_form.toggle()}});}\n else{edit_form.toggle()}});}\n
\n \n
if(remove){\n if(remove){\n
remove.unbind("click");\n
remove.bind("click", function (){\n remove.bind("click", function (){\n
if (is_knowledge_template_used){showCreateDefaultKnowledgePadWarningMessage();}\n if (is_knowledge_template_used){showCreateDefaultKnowledgePadWarningMessage();}\n
else{\n else{\n
...@@ -485,7 +488,7 @@ $(document).ready(initialize);\n ...@@ -485,7 +488,7 @@ $(document).ready(initialize);\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>18095</int> </value> <value> <int>18185</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
689 690
\ 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