[Directives/Config] Added back the form wrapping for the config directive

This commit is contained in:
Khalah Jones-Golden 2015-03-26 11:36:03 -07:00
parent ddc909b41c
commit 020e61e3af

View file

@ -32,7 +32,11 @@ define(function (require) {
});
var wrapTmpl = function (tmpl) {
return '<div class="container-fluid">' + tmpl + '</div>';
if ($scope.configSubmit) {
return '<form role="form" class="container-fluid" ng-submit="configSubmit()">' + tmpl + '</form>';
} else {
return '<div class="container-fluid">' + tmpl + '</div>';
}
};
var render = function (newTemplate, oldTemplate) {