Skip to content

Commit

Permalink
[Sahara] Fixed cluster template creation
Browse files Browse the repository at this point in the history
Change-Id: I52197d8149bc5a40747dee554f356a4dfa5591aa
Closes-Bug: #1364648
  • Loading branch information
Andrew Lazarev committed Sep 3, 2014
1 parent af7559b commit 6280fb7
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -39,7 +39,7 @@
var ids = [];
$(".data-template-row").each(function () {
var id = parseInt($(this).attr("id_attr"));
if (!!id) {
if (!isNaN(id)) {
ids.push(id);
}
});
Expand All @@ -54,7 +54,7 @@
replace(/\$template_id/g, template_id).
replace(/\$node_count/g, node_count).
replace(/\$template_name/g, template_name);
$("#header_row").after(tmp);
$("#groups_table").find("tr:last").after(tmp);
if (!deletable) {
$("#delete_btn_" + id).remove();
$("#group_name_" + id).prop('readonly', true);
Expand Down Expand Up @@ -108,7 +108,7 @@
</span>
<br/>
<div id="node-templates">
<table>
<table id="groups_table">
<tr id="header_row" class="row">
<th class="col-sm-4 small-padding"><label>Group Name</label></th>
<th class="col-sm-3 small-padding"><label>Template</label></th>
Expand Down

0 comments on commit 6280fb7

Please sign in to comment.