diff --git a/plugins/bc-admin-third/src/js/admin/users/index.js b/plugins/bc-admin-third/src/js/admin/users/index.js new file mode 100644 index 0000000000..69d51276c2 --- /dev/null +++ b/plugins/bc-admin-third/src/js/admin/users/index.js @@ -0,0 +1,25 @@ +/** + * baserCMS : Based Website Development Project + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.0.0 + * @license https://basercms.net/license/index.html MIT License + */ + +/** + * ユーザー一覧 + */ +$(function () { + /** + * 代理ログインボタンの二重クリック防止 + */ + $('.btn-login').on('click', function (e) { + if ($(this).attr('disabled')) { + e.preventDefault(); + return false; + } + $(this).attr('disabled', 'disabled'); + }); +}); diff --git a/plugins/bc-admin-third/templates/Admin/Users/index.php b/plugins/bc-admin-third/templates/Admin/Users/index.php index 025697c07f..b9e69ac9ba 100755 --- a/plugins/bc-admin-third/templates/Admin/Users/index.php +++ b/plugins/bc-admin-third/templates/Admin/Users/index.php @@ -24,6 +24,7 @@ $this->BcAdmin->setTitle(__d('baser_core', 'ユーザー一覧')); $this->BcAdmin->setSearch('users_index'); $this->BcAdmin->setHelp('users_index'); +$this->BcBaser->js(['admin/users/index.bundle'], false); ?> diff --git a/plugins/bc-admin-third/webroot/js/admin/users/index.bundle.js b/plugins/bc-admin-third/webroot/js/admin/users/index.bundle.js new file mode 100644 index 0000000000..350ecf3e50 --- /dev/null +++ b/plugins/bc-admin-third/webroot/js/admin/users/index.bundle.js @@ -0,0 +1,11 @@ +/** + * baserCMS : Based Website Development Project + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.0.0 + * @license https://basercms.net/license/index.html MIT License + */ +$(function(){$(".btn-login").on("click",function(t){if($(this).attr("disabled"))return t.preventDefault(),!1;$(this).attr("disabled","disabled")})}); +//# sourceMappingURL=index.bundle.js.map \ No newline at end of file diff --git a/plugins/bc-admin-third/webroot/js/admin/users/index.bundle.js.map b/plugins/bc-admin-third/webroot/js/admin/users/index.bundle.js.map new file mode 100644 index 0000000000..8ee314e0b9 --- /dev/null +++ b/plugins/bc-admin-third/webroot/js/admin/users/index.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/admin/users/index.bundle.js","mappings":";;;;;;;;;AAaAA,EAAE,WAIEA,EAAE,cAAcC,GAAG,QAAS,SAAUC,GAClC,GAAIF,EAAEG,MAAMC,KAAK,YAEb,OADAF,EAAEG,kBACK,EAEXL,EAAEG,MAAMC,KAAK,WAAY,WAC7B,EACJ","sources":["webpack://bc-admin-third/./src/js/admin/users/index.js"],"sourcesContent":["/**\n * baserCMS : Based Website Development Project \n * Copyright (c) NPO baser foundation \n *\n * @copyright Copyright (c) NPO baser foundation\n * @link https://basercms.net baserCMS Project\n * @since 5.0.0\n * @license https://basercms.net/license/index.html MIT License\n */\n\n/**\n * ユーザー一覧\n */\n$(function () {\n /**\n * 代理ログインボタンの二重クリック防止\n */\n $('.btn-login').on('click', function (e) {\n if ($(this).attr('disabled')) {\n e.preventDefault();\n return false;\n }\n $(this).attr('disabled', 'disabled');\n });\n});\n"],"names":["$","on","e","this","attr","preventDefault"],"sourceRoot":""} \ No newline at end of file