Commit 9bf79d6f authored by Gabriel Monnerat's avatar Gabriel Monnerat

optimize code

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45267 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8e7e6a58
......@@ -47,12 +47,11 @@
class="save" type="submit"\n
i18n:translate="" i18n:domain="ui">Save</button>\n
<div class="action_menu">\n
<tal:block tal:define="portal_path here/absolute_url;\n
url_suffix python: \'/ERP5Site_createNewWebDocument?select_action=\'">\n
<tal:block tal:define="url_suffix python: \'/ERP5Site_createNewWebDocument?select_action=\'">\n
<li>\n
<a id="change_state">\n
<span i18n:translate="" i18n:domain="ui">Change State</span>\n
<img tal:attributes="src python: portal_path + \'/ung_images/arrow.png\'">\n
<img tal:attributes="src python: here.absolute_url() + \'/ung_images/arrow.png\'">\n
</a>\n
<ul>\n
<tal:block tal:repeat="action actions/workflow">\n
......@@ -66,7 +65,9 @@
</li>\n
</tal:block>\n
</div>\n
<a id=\'sharing_url\'></a>\n
<tal:block tal:condition="python: here.getValidationState() == \'shared\'">\n
<span id="sharing_url" tal:content="python: here.getWebSiteValue().absolute_url() + \'?key=\' + here.getReference()">Key</span>\n
</tal:block>\n
</tal:block>
]]></unicode> </value>
......
......@@ -925,7 +925,7 @@ div.header-right fieldset.widget {\n
height: 29px;\n
}\n
\n
div.header-right fieldset.widget a#sharing_url {\n
div.header-right fieldset.widget span#sharing_url {\n
padding-top: 2px;\n
font-size: 11px;\n
}\n
......
......@@ -338,14 +338,6 @@ $().ready(function(){\n
});\n
};\n
$("div.action_menu li ul").css("height", $("div.action_menu li ul li").length * 25.3 + "px");\n
if ($("a[name=\'document_state\']").text() == "Shared"){\n
reference = $.ajax({\n
url: \'getReference\',\n
async: false,\n
}).responseText;\n
keyUrl = location.href.split("web_page_module")[0] + "?key=" + reference;\n
$("div.header-right fieldset.widget a#sharing_url").text(keyUrl);\n
};\n
};\n
$("#edit_document").dialog({\n
autoOpen: false,\n
......
342
\ No newline at end of file
343
\ 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