Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {block #content}
- <h1>Přihlášení</h1>
- {snippet signInForm}
- {control signInForm}
- {/snippet}
- <script type="text/javascript">
- $(function() {
- focusElementsById(new Array("frmsignInForm-username", "frmsignInForm-password"));
- });
- $.nette.ext('login_form', {
- load: function () {
- $('form[name="login_form"]').off('submit').on('submit', function (e) {
- $(this).netteAjax(e, {
- beforeSend: function () {
- showAjaxSpinner("Přihlašování uživatele.");
- deactivateButton("frmsignInForm-login", "Přihlašuji...");
- },
- success: function(payload) {
- if (payload.error === false) {
- showAjaxSpinner("Přesměrování na herní stránku.");
- document.location = {link :Game:user:overview};
- } else {
- hideAjaxSpinner();
- }
- }
- });
- });
- }
- });
- </script>
- {/block}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement