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 @@ ...@@ -47,12 +47,11 @@
class="save" type="submit"\n class="save" type="submit"\n
i18n:translate="" i18n:domain="ui">Save</button>\n i18n:translate="" i18n:domain="ui">Save</button>\n
<div class="action_menu">\n <div class="action_menu">\n
<tal:block tal:define="portal_path here/absolute_url;\n <tal:block tal:define="url_suffix python: \'/ERP5Site_createNewWebDocument?select_action=\'">\n
url_suffix python: \'/ERP5Site_createNewWebDocument?select_action=\'">\n
<li>\n <li>\n
<a id="change_state">\n <a id="change_state">\n
<span i18n:translate="" i18n:domain="ui">Change State</span>\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 </a>\n
<ul>\n <ul>\n
<tal:block tal:repeat="action actions/workflow">\n <tal:block tal:repeat="action actions/workflow">\n
...@@ -66,7 +65,9 @@ ...@@ -66,7 +65,9 @@
</li>\n </li>\n
</tal:block>\n </tal:block>\n
</div>\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> </tal:block>
]]></unicode> </value> ]]></unicode> </value>
......
...@@ -925,7 +925,7 @@ div.header-right fieldset.widget {\n ...@@ -925,7 +925,7 @@ div.header-right fieldset.widget {\n
height: 29px;\n height: 29px;\n
}\n }\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 padding-top: 2px;\n
font-size: 11px;\n font-size: 11px;\n
}\n }\n
......
...@@ -338,14 +338,6 @@ $().ready(function(){\n ...@@ -338,14 +338,6 @@ $().ready(function(){\n
});\n });\n
};\n };\n
$("div.action_menu li ul").css("height", $("div.action_menu li ul li").length * 25.3 + "px");\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 };\n
$("#edit_document").dialog({\n $("#edit_document").dialog({\n
autoOpen: false,\n autoOpen: false,\n
......
342 343
\ 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