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

change text of button when the action is selected

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45020 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 004d923c
......@@ -344,6 +344,8 @@ $().ready(function(){\n
modal: true,\n
buttons: {\n
"Save": 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
......@@ -360,7 +362,7 @@ $().ready(function(){\n
setObjectPropertyValue("setIntIndex", new_int_index, "value");\n
setObjectPropertyValue("WebPage_setSubjectList", new_subject_list, "value"); \n
$("#edit_document").dialog("close");\n
$("button.save").click();\n
save_button.click();\n
},\n
Cancel: function() {\n
$(this).dialog("close");\n
......
328
\ No newline at end of file
329
\ 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