From 672eca53371b131484d00cbe6a069092d0b7f6b3 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 24 Dec 2008 00:20:26 +0000 Subject: Lots of deltas rolled up into a bigger change. Sorry for the mess. 1) Deleted in-place-editing. We'll be replacing this with a real edit system that groups settings together and is more coherent. 2) Tweaked the way that dialog boxes work to get the ajax stuff working again. It's imperfect and does not work properly for uploading images. This is going to get redone also, but this is a good resting point. 3) Created edit forms for albums and photos. Moved _update and _create out of Items_Controller and into the individual subclasses. 4) Created access::required which is a shorthand for: if (!access::can(...)) { access::forbidden(); } 5) Added validation rules to Items_Model 6) Converted login to use the regular modal dialog approach in the theme. --- modules/user/js/user.js | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 modules/user/js/user.js (limited to 'modules/user/js/user.js') diff --git a/modules/user/js/user.js b/modules/user/js/user.js deleted file mode 100644 index d8488092..00000000 --- a/modules/user/js/user.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Ajaxify user login form - */ -function ajaxify_login_form(event) { - event.preventDefault(); - $("#gLoginForm").ajaxForm({ - target: "#gDialog", - success: function(responseText, statusText) { - if (!responseText) { - window.location.reload(); - } else { - ajaxify_login_form(event); - } - } - }); - return false; -} - -$("document").ready(function() { - $.listen("submit", "#gLoginForm", function(event) { - ajaxify_login_form(event); - }); -}); -- cgit v1.2.3