diff options
Diffstat (limited to 'main/app/sprinkles/account/assets/userfrosting/js/pages/account-settings.js')
-rw-r--r-- | main/app/sprinkles/account/assets/userfrosting/js/pages/account-settings.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/main/app/sprinkles/account/assets/userfrosting/js/pages/account-settings.js b/main/app/sprinkles/account/assets/userfrosting/js/pages/account-settings.js deleted file mode 100644 index f1e9845..0000000 --- a/main/app/sprinkles/account/assets/userfrosting/js/pages/account-settings.js +++ /dev/null @@ -1,29 +0,0 @@ -/**
- * Page-specific Javascript file. Should generally be included as a separate asset bundle in your page template.
- * example: {{ assets.js('js/pages/sign-in-or-register') | raw }}
- *
- * This script depends on validation rules specified in pages/partials/page.js.twig.
- *
- * Target page: account/settings
- */
-$(document).ready(function () {
-
- // Apply select2 to locale field
- $('.js-select2').select2();
-
- $("#account-settings").ufForm({
- validators: page.validators.account_settings,
- msgTarget: $("#alerts-page")
- }).on("submitSuccess.ufForm", function () {
- // Reload the page on success
- window.location.reload();
- });
-
- $("#profile-settings").ufForm({
- validators: page.validators.profile_settings,
- msgTarget: $("#alerts-page")
- }).on("submitSuccess.ufForm", function () {
- // Reload the page on success
- window.location.reload();
- });
-});
|