Skip to content

Commit

Permalink
FIx for rendering when there are no bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
mcartmel committed Apr 13, 2017
1 parent 659aca0 commit 4dc50a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodel-webui-js/www/js/nodel.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ var init = function() {
eval('$.templates({'+form+'Template: template})');
// fill the template with data
buildForm(form, form, [],'save', true);
} else $('#'+form).replaceWith('<h5 class="pad">None</h5>');
} else $('#'+form).trigger('ready').replaceWith('<h5 class="pad">None</h5>');
});
});
$('#params').on('ready', function(){
Expand Down Expand Up @@ -1612,4 +1612,4 @@ var buildFormSchema = function(data, key, parent) {
console.log('unhandled type: ' + data.type);
}
return set;
};
};

0 comments on commit 4dc50a0

Please sign in to comment.