summaryrefslogtreecommitdiff
path: root/modules/user/views/login_ajax.html.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-11-15 19:44:47 -0800
committerAndy Staudacher <andy.st@gmail.com>2009-11-15 19:44:47 -0800
commit0733dc37fda27a5ba35f9020edf3c66aa41a95a0 (patch)
tree6877946232f1b01b1c8709054c689f6658cef34f /modules/user/views/login_ajax.html.php
parent218493c50be9362d4abed6900a816308fee5d978 (diff)
parent9379308f91a476f790fb8d444536719535c584e4 (diff)
Merge commit 'upstream/master'
Conflicts: modules/gallery/tests/xss_data.txt
Diffstat (limited to 'modules/user/views/login_ajax.html.php')
-rw-r--r--modules/user/views/login_ajax.html.php44
1 files changed, 0 insertions, 44 deletions
diff --git a/modules/user/views/login_ajax.html.php b/modules/user/views/login_ajax.html.php
deleted file mode 100644
index 56bc1cbd..00000000
--- a/modules/user/views/login_ajax.html.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php defined("SYSPATH") or die("No direct script access.") ?>
-<script type="text/javascript">
- $("#gLoginForm").ready(function() {
- $("#gForgotPasswordLink").click(function() {
- $.ajax({
- url: "<?= url::site("password/reset") ?>",
- success: function(data) {
- $("div#gLoginView").html(data);
- $("#ui-dialog-title-gDialog").html(<?= t("Reset Password")->for_js() ?>);
- ajaxify_login_reset_form();
- }
- });
- });
- });
-
- function ajaxify_login_reset_form() {
- $("#gLoginView form").ajaxForm({
- dataType: "json",
- success: function(data) {
- if (data.form) {
- $("#gLoginView form").replaceWith(data.form);
- ajaxify_login_reset_form();
- }
- if (data.result == "success") {
- $("#gDialog").dialog("close");
- window.location.reload();
- }
-
- }
- });
- };
-</script>
-<div id="gLoginView">
- <ul>
- <li>
- <div id="gLoginViewForm">
- <?= $form ?>
- </div>
- </li>
- <li>
- <a href="#" id="gForgotPasswordLink"><?= t("Forgot Your Password?") ?></a>
- </li>
- </ul>
-</div>