1angular.module("sn.app_common", ["sn.app_common.snapi","sn.app_common.time","sn.app_common.sanitize"]) 2.directive("focusThisElement", ["$timeout", "$log", function($timeout, $log) { 3 return { 4 "restrict": 'A', 5 "scope": { 6 trigger: "<focusThisElement", 7 scroll: "@preventFocusScroll" 8 }, 9 "link": function(scope, element) { 10 scope.$watch("trigger", function(value) { 11 if (value === true) 12 $timeout(function() { element[0].focus({"preventScroll": scope.scroll}); }); 13 }); 14 } 15 }; 16}]); 17 18angular.module("sn.app_common.snapi", []) 19 .constant('SNAPI', { 20 SERVICE: { 21 TABLE: '/api/now/table/', 22 NOTIFICATION: '/api/now/session/notification' 23 } 24 }); 25 26angular.module("sn.app_common.time", []) 27 .constant('TIME', { 28 SECOND: 1000, 29 MINUTE: 60000, 30 HOUR: 3600000, 31 DAY: 86400000 32 }); 33 34angular.module("sn.app_common.sanitize", []) 35 .filter("sanitize", ['$sce', '$sanitize', function($sce, $sanitize) { 36 return function(htmlRaw) { 37 return $sce.trustAsHtml($sanitize(htmlRaw)); 38 }; 39 }]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.