<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<pre class="bz_comment_text" id="comment_text_6">What we are solving is the problem that when adding a logical pool with the right "Storage Pool Name" as well as selected "Device Path",
Clicking on "Create" and a warn message box showed up. Now you click on cancel or the "X" that you regret creating the storage,
the inputbox of "Storage Pool Name" and the "Create" button is still disabled. Though <a class="bz_bug_link
bz_status_CLOSED bz_closed" title="CLOSED DUPLICATE - TERM environment variable not set - SuSE SLES 7 Beta 6a" href="https://bugzilla.linux.ibm.com/show_bug.cgi?id=457">Bug#457</a> has been fixed, this issue still exists and this patch is used to fix this.
This patch just change the widget back to editable when canceling the creating, it is going to have the right display when you are really doing the create.
Best Regards
</pre>
<div class="moz-cite-prefix">On 9/24/2014 12:22 AM, Aline Manera
wrote:<br>
</div>
<blockquote cite="mid:54219E3A.70403@linux.vnet.ibm.com" type="cite">
<br>
On 09/23/2014 03:18 AM, Wen Wang wrote:
<br>
<blockquote type="cite">From: Wen Wang
<a class="moz-txt-link-rfc2396E" href="mailto:wenwang@linux.vnet.ibm.com"><wenwang@linux.vnet.ibm.com></a>
<br>
<br>
This bug fix the defect that when adding a new logical storage
pool, a
<br>
confrim message box show up and when canceling it, the inputbox
as well
<br>
as button "Create" is still disabled.
<br>
<br>
Signed-off-by: Wen Wang <a class="moz-txt-link-rfc2396E" href="mailto:wenwang@linux.vnet.ibm.com"><wenwang@linux.vnet.ibm.com></a>
<br>
---
<br>
ui/js/src/kimchi.storagepool_add_main.js | 3 +++
<br>
1 files changed, 3 insertions(+), 0 deletions(-)
<br>
<br>
diff --git a/ui/js/src/kimchi.storagepool_add_main.js
b/ui/js/src/kimchi.storagepool_add_main.js
<br>
index 4f1f943..d926ad7 100644
<br>
--- a/ui/js/src/kimchi.storagepool_add_main.js
<br>
+++ b/ui/js/src/kimchi.storagepool_add_main.js
<br>
@@ -409,6 +409,9 @@ kimchi.addPool = function(event) {
<br>
$('#pool-doAdd').show();
<br>
});
<br>
}, function() {
<br>
+ $('input',
'#form-pool-add').removeAttr('disabled');
<br>
+ $('#pool-loading').hide();
<br>
+ $('#pool-doAdd').show();
<br>
});
<br>
} else {
<br>
kimchi.createStoragePool(formData, function() {
<br>
</blockquote>
<br>
Instead of resetting the button state, I think we should only
change it to "Please, wait..." when the action is confirmed.
<br>
</blockquote>
<br>
</body>
</html>