Commit c499bda3 authored by Gabriel Monnerat's avatar Gabriel Monnerat

refactor to show option only the object is created

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41699 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 21da0c44
...@@ -189,6 +189,7 @@ $(document).ready(function(){\n ...@@ -189,6 +189,7 @@ $(document).ready(function(){\n
},\n },\n
});\n });\n
});\n });\n
if ($("a[name=\'document_state\']").text() == "draft") {\n
$("div.action_menu li ul").append("<li><a id=\'share_document\' href=\'#\'>" + \n $("div.action_menu li ul").append("<li><a id=\'share_document\' href=\'#\'>" + \n
"<h6>Share this Document</h6></a></li>");\n "<h6>Share this Document</h6></a></li>");\n
$("div.action_menu li ul").css("height", 101);\n $("div.action_menu li ul").css("height", 101);\n
...@@ -201,6 +202,7 @@ $(document).ready(function(){\n ...@@ -201,6 +202,7 @@ $(document).ready(function(){\n
alert(reference);\n alert(reference);\n
});\n });\n
}\n }\n
}\n
$("#edit_document").dialog({\n $("#edit_document").dialog({\n
autoOpen: false,\n autoOpen: false,\n
height: 146,\n height: 146,\n
......
140 141
\ 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