Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Form.ts « Form « src « vue « CorePluginsAdmin « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 386eb2a6e166dc32d2ceed7fb7a35fec12b6daea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*!
 * Matomo - free/libre analytics platform
 *
 * @link https://matomo.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
 */

const { $ } = window;

export default {
  mounted(el: HTMLElement): void {
    setTimeout(() => {
      $(el).find('input[type=text]').keypress((e) => {
        const key = e.keyCode || e.which;
        if (key === 13) {
          $(el).find('.matomo-save-button input').triggerHandler('click');
        }
      });
    });
  },
};