got translation to work

This commit is contained in:
David Baldwynn 2016-06-08 16:42:46 -07:00
parent bc3c045163
commit 3768d0ed42
2 changed files with 1 additions and 3 deletions

1
config/env/all.js vendored
View file

@ -81,6 +81,7 @@ module.exports = {
'public/application.js',
'public/dist/populate_template_cache.js',
'public/modules/*/*.js',
'public/modules/*/*/*/*/*.js',
'public/modules/*/*/*.js',
'public/modules/*/*/*/*.js',
'!public/modules/**/gruntfile.js',

View file

@ -32,8 +32,6 @@ angular.module('forms').directive('fieldDirective', ['$http', '$compile', '$root
if (__indexOf.call(supported_fields, type) >= 0) {
var templateUrl = 'modules/forms/base/views/directiveViews/field/';
templateUrl = templateUrl+type+'.html';
console.log(templateUrl);
return $templateCache.get(templateUrl);
}
return null;
@ -102,7 +100,6 @@ angular.module('forms').directive('fieldDirective', ['$http', '$compile', '$root
fieldType = 'textfield';
}
var template = getTemplateUrl(fieldType);
console.log(template);
element.html(template).show();
var output = $compile(element.contents())(scope);
}