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
No related merge requests found
...@@ -344,6 +344,8 @@ $().ready(function(){\n ...@@ -344,6 +344,8 @@ $().ready(function(){\n
modal: true,\n modal: true,\n
buttons: {\n buttons: {\n
"Save": function(){\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_title = $("input#name.title").attr("value");\n
var new_reference = $("input#reference.reference").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_short_title = $("input#short_title.short_title").attr("value");\n
...@@ -360,7 +362,7 @@ $().ready(function(){\n ...@@ -360,7 +362,7 @@ $().ready(function(){\n
setObjectPropertyValue("setIntIndex", new_int_index, "value");\n setObjectPropertyValue("setIntIndex", new_int_index, "value");\n
setObjectPropertyValue("WebPage_setSubjectList", new_subject_list, "value"); \n setObjectPropertyValue("WebPage_setSubjectList", new_subject_list, "value"); \n
$("#edit_document").dialog("close");\n $("#edit_document").dialog("close");\n
$("button.save").click();\n save_button.click();\n
},\n },\n
Cancel: function() {\n Cancel: function() {\n
$(this).dialog("close");\n $(this).dialog("close");\n
......
328 329
\ 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