initial import for Open Source 🎉
This commit is contained in:
parent
1898c361f3
commit
9c0dd3b722
2048 changed files with 218743 additions and 0 deletions
11
static/js/directives/ng-name.js
Normal file
11
static/js/directives/ng-name.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Adds an ng-name attribute which sets the name of a form field. Using the normal name field
|
||||
* in Angular 1.3 works, but we're still on 1.2.
|
||||
*/
|
||||
angular.module('quay').directive('ngName', function () {
|
||||
return function (scope, element, attr) {
|
||||
scope.$watch(attr.ngName, function (name) {
|
||||
element.attr('name', name);
|
||||
});
|
||||
};
|
||||
});
|
Reference in a new issue