got translation to work
This commit is contained in:
parent
bc3c045163
commit
3768d0ed42
1
config/env/all.js
vendored
1
config/env/all.js
vendored
|
@ -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',
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue