var app; (function (app) { var EController; (function (EController) { EController[EController["Category"] = 1] = "Category"; EController[EController["Gpixs"] = 2] = "Gpixs"; EController[EController["Level"] = 4] = "Level"; EController[EController["Poi"] = 8] = "Poi"; EController[EController["Tour"] = 16] = "Tour"; EController[EController["Video"] = 32] = "Video"; EController[EController["Max"] = 64] = "Max"; })(EController = app.EController || (app.EController = {})); var mainApp = angular.module('gpixWebPlayer', ['ngAnimate']).directive('focus', function ($timeout) { return { scope: { trigger: '@focus' }, link: function (scope, element) { scope.$watch('trigger', function (value) { if (value === "true") { $timeout(function () { element[0].focus(); }); } }); } }; }); ; })(app || (app = {}));