Adding extra dependency reference for awToolTip

the awToolTip directive has a dependency on the $sce (context escaping) service, and I had incorrectly defined this reference in an earlier commit.
This commit is contained in:
Jared Tabor
2015-02-03 14:33:42 -05:00
parent ac7eeb7bd3
commit 2a5f904283

View File

@@ -390,7 +390,7 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Job
* Include the standard TB data-XXX attributes to controll a tooltip's appearance. We will * Include the standard TB data-XXX attributes to controll a tooltip's appearance. We will
* default placement to the left and delay to the config setting. * default placement to the left and delay to the config setting.
*/ */
.directive('awToolTip', function($sce) { .directive('awToolTip', ['$sce', function($sce) {
return function(scope, element, attrs) { return function(scope, element, attrs) {
var delay = (attrs.delay !== undefined && attrs.delay !== null) ? attrs.delay : ($AnsibleConfig) ? $AnsibleConfig.tooltip_delay : {show: 500, hide: 100}, var delay = (attrs.delay !== undefined && attrs.delay !== null) ? attrs.delay : ($AnsibleConfig) ? $AnsibleConfig.tooltip_delay : {show: 500, hide: 100},
placement; placement;
@@ -433,7 +433,7 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Job
}); });
} }
}; };
}) }])
/* /*
* This is a copy of awToolTip currently. * This is a copy of awToolTip currently.