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,17 +189,19 @@ $(document).ready(function(){\n ...@@ -189,17 +189,19 @@ $(document).ready(function(){\n
},\n },\n
});\n });\n
});\n });\n
$("div.action_menu li ul").append("<li><a id=\'share_document\' href=\'#\'>" + \n if ($("a[name=\'document_state\']").text() == "draft") {\n
"<h6>Share this Document</h6></a></li>");\n $("div.action_menu li ul").append("<li><a id=\'share_document\' href=\'#\'>" + \n
$("div.action_menu li ul").css("height", 101);\n "<h6>Share this Document</h6></a></li>");\n
$("div.action_menu ul li a#share_document").click(function(event){\n $("div.action_menu li ul").css("height", 101);\n
event.preventDefault();\n $("div.action_menu ul li a#share_document").click(function(event){\n
reference = $.ajax({\n event.preventDefault();\n
url: \'WebSection_shareDocument\',\n reference = $.ajax({\n
async: false,\n url: \'WebSection_shareDocument\',\n
}).responseText;\n async: false,\n
alert(reference);\n }).responseText;\n
});\n alert(reference);\n
});\n
}\n
}\n }\n
$("#edit_document").dialog({\n $("#edit_document").dialog({\n
autoOpen: false,\n autoOpen: false,\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