mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 7905: template page - add template dialog - reset format field based upon hypervisor field before dialog pops up.
This commit is contained in:
parent
8bc7118c4f
commit
0f8da4093d
@ -82,16 +82,16 @@ function afterLoadTemplateJSP() {
|
||||
|
||||
return false;
|
||||
});
|
||||
$("#dialog_add_template #add_template_hypervisor").change();
|
||||
|
||||
|
||||
|
||||
if(isAdmin())
|
||||
$("#dialog_add_template #add_template_featured_container, #dialog_edit_template #edit_template_featured_container").show();
|
||||
else
|
||||
$("#dialog_add_template #add_template_featured_container, #dialog_edit_template #edit_template_featured_container").hide();
|
||||
|
||||
//add button ***
|
||||
$("#add_template_button").unbind("click").bind("click", function(event) {
|
||||
$("#add_template_button").unbind("click").bind("click", function(event) {
|
||||
$("#dialog_add_template #add_template_hypervisor").change();
|
||||
|
||||
$("#dialog_add_template")
|
||||
.dialog('option', 'buttons', {
|
||||
"Create": function() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user