mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(ngblur): removed ngblur directive as it conflicted with angular naitive directive, fixes #2429
This commit is contained in:
parent
29c833d623
commit
874503ca68
@ -2,7 +2,6 @@ define([
|
|||||||
'./arrayJoin',
|
'./arrayJoin',
|
||||||
'./dashUpload',
|
'./dashUpload',
|
||||||
'./grafanaSimplePanel',
|
'./grafanaSimplePanel',
|
||||||
'./ngBlur',
|
|
||||||
'./dashEditLink',
|
'./dashEditLink',
|
||||||
'./ngModelOnBlur',
|
'./ngModelOnBlur',
|
||||||
'./misc',
|
'./misc',
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
define([
|
|
||||||
'angular'
|
|
||||||
],
|
|
||||||
function (angular) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
angular
|
|
||||||
.module('grafana.directives')
|
|
||||||
.directive('ngBlur', ['$parse', function($parse) {
|
|
||||||
return function(scope, element, attr) {
|
|
||||||
var fn = $parse(attr['ngBlur']);
|
|
||||||
element.bind('blur', function(event) {
|
|
||||||
scope.$apply(function() {
|
|
||||||
fn(scope, {$event:event});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
|
||||||
}]);
|
|
||||||
|
|
||||||
});
|
|
Loading…
Reference in New Issue
Block a user