Commit 7b6dc386 authored by Gabriel Monnerat's avatar Gabriel Monnerat

don't display reference field to not allow the user change the reference of document

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45194 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2904e718
......@@ -43,7 +43,7 @@
<img src="web_site_module/ung/ung_images/arrow_20C.png">\n
<ul>\n
<tal:block tal:repeat="language python: filter(lambda x: x != current_language, here.Localizer.get_supported_languages())">\n
<li><span onClick="changeLanguage(this.innerHTML)" tal:content="language">Language</span></li>\n
<li><span tal:attributes="id language" onClick="changeLanguage(this.innerHTML)" tal:content="language">Language</span></li>\n
</tal:block>\n
</ul>\n
</li>\n
......
......@@ -65,8 +65,6 @@
<div id="more_property">\n
<label for="short_title">Short Title:</label>\n
<input type="text" class="short_title" id="short_title" name="short_title" value=""><br>\n
<label for="reference">Reference:</label>\n
<input type="text" class="reference" id="reference" name="reference" value=""><br>\n
<label for="version">Version:</label>\n
<input type="text" class="version" id="version" name="version" value=""><br>\n
<label for="language">Language:</label>\n
......
......@@ -357,7 +357,6 @@ $().ready(function(){\n
var save_button = $("button.save");\n
save_button.html() == "Save" ? save_button.html("Saving...") : null;\n
var new_title = $("input#name.title").attr("value");\n
var new_reference = $("input#reference.reference").attr("value");\n
var new_short_title = $("input#short_title.short_title").attr("value");\n
var new_language = $("input#language.language").attr("value");\n
var new_version = $("input#version.version").attr("value");\n
......@@ -365,7 +364,6 @@ $().ready(function(){\n
var new_subject_list = $("textarea#keyword_list").attr("value").replace(/\\n+/g, ",");\n
displayDocumentTitle(new_title);\n
setObjectPropertyValue("setTitle", new_title, "value");\n
setObjectPropertyValue("setReference", new_reference, "value");\n
setObjectPropertyValue("setShortTitle", new_short_title, "value");\n
setObjectPropertyValue("setLanguage", new_language, "language");\n
setObjectPropertyValue("setVersion", new_version, "value");\n
......@@ -441,10 +439,10 @@ $().ready(function(){\n
.click(function(){\n
$("div#more_property").show();\n
$("p#hide_properties").show();\n
$("div#edit_document fieldset").animate({"height": "214px"}, "slow");\n
$("div#edit_document fieldset").animate({"height": "186px"}, "slow");\n
$("div.ui-dialog").animate({"top": "50px"}, "slow")\n
.animate({"height": "274px"}, "slow");\n
$("div#edit_document").animate({"height": "205px"}, "slow");\n
.animate({"height": "255px"}, "slow");\n
$("div#edit_document").animate({"height": "183px"}, "slow");\n
$("div#edit_document fieldset input").css("margin", "0")\n
.css("width", "60%");\n
$("div#edit_document fieldset label").css("float", "left")\n
......
338
\ No newline at end of file
339
\ 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