Added Docker stuff.
This commit is contained in:
16
admin/directives/customOnChange.directive.js
Normal file
16
admin/directives/customOnChange.directive.js
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
angular
|
||||
.module('sloDialectsAdmin')
|
||||
.directive('customOnChange', function () {
|
||||
return {
|
||||
restrict: 'A',
|
||||
link: function (scope, element, attrs) {
|
||||
var onChangeHandler = scope.$eval(attrs.customOnChange);
|
||||
element.on('change', onChangeHandler);
|
||||
element.on('$destroy', function () {
|
||||
element.off();
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user