diff --git a/.jshintrc b/.jshintrc index e8f044e1da9..16904c42413 100644 --- a/.jshintrc +++ b/.jshintrc @@ -23,7 +23,7 @@ "laxcomma": true, "sub": true, "unused": true, - "maxdepth": 5, + "maxdepth": 6, "maxlen": 140, "globals": { @@ -32,4 +32,4 @@ "Chromath": false, "setImmediate": true } -} \ No newline at end of file +} diff --git a/public/app/directives/misc.js b/public/app/directives/misc.js index f6b06355274..6e4b83bf726 100644 --- a/public/app/directives/misc.js +++ b/public/app/directives/misc.js @@ -63,15 +63,16 @@ function (angular, kbn) { restrict: 'E', link: function(scope, elem, attrs) { var text = $interpolate(attrs.text)(scope); + var model = $interpolate(attrs.model)(scope); var ngchange = attrs.change ? (' ng-change="' + attrs.change + '"') : ''; var tip = attrs.tip ? (' ' + attrs.tip + '') : ''; - var label = '