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