diff options
Diffstat (limited to 'plugins/CorePluginsAdmin/angularjs/form/form.directive.js')
-rw-r--r-- | plugins/CorePluginsAdmin/angularjs/form/form.directive.js | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/plugins/CorePluginsAdmin/angularjs/form/form.directive.js b/plugins/CorePluginsAdmin/angularjs/form/form.directive.js deleted file mode 100644 index 3fec5db7e7..0000000000 --- a/plugins/CorePluginsAdmin/angularjs/form/form.directive.js +++ /dev/null @@ -1,39 +0,0 @@ -/*! - * Matomo - free/libre analytics platform - * - * @link https://matomo.org - * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */ - -/** - * Usage: - * <div piwik-form> - */ -(function () { - angular.module('piwikApp').directive('piwikForm', piwikForm); - - piwikForm.$inject = ['piwik', '$timeout']; - - function piwikForm(piwik, $timeout){ - - return { - restrict: 'A', - priority: '10', - compile: function (element, attrs) { - - return function (scope, element, attrs) { - - $timeout(function () { - - element.find('input[type=text]').keypress(function (e) { - var key = e.keyCode || e.which; - if (key == 13) { - element.find('[piwik-save-button] input').triggerHandler('click'); - } - }); - }); - }; - } - }; - } -})();
\ No newline at end of file |