Make the hip chat setup field show more help information if the user enters a room name instead of a number

This commit is contained in:
Joseph Schorr 2015-02-26 12:35:28 -05:00
parent 258e879d11
commit d8048b09d2
4 changed files with 48 additions and 6 deletions

View 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);
});
};
});