JS files no longer live in src/
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 18 Aug 2009 05:09:14 +0000 (23:09 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 18 Aug 2009 08:30:50 +0000 (02:30 -0600)
imp/js/src/accountsmanagement.js [deleted file]

diff --git a/imp/js/src/accountsmanagement.js b/imp/js/src/accountsmanagement.js
deleted file mode 100644 (file)
index 84c77f7..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/**
- * Provides the javascript for managing accounts.
- *
- * See the enclosed file COPYING for license information (GPL). If you
- * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
- */
-
-var ImpAccountsmanagement = {
-    // Variables set by other code: confirm_delete
-
-    _sendData: function(a, d)
-    {
-        $('accounts_action').setValue(a)
-        $('accounts_data').setValue(d);
-        $('prefs').submit();
-    },
-
-    clickHandler: function(e)
-    {
-        if (e.isRightClick()) {
-            return;
-        }
-
-        var elt = e.element();
-
-        while (Object.isElement(elt)) {
-            if (elt.hasClassName('accountsdelete')) {
-                if (window.confirm(this.confirm_delete)) {
-                    this._sendData('delete', elt.up('TR').readAttribute('id').substring(11));
-                }
-                e.stop();
-                return;
-            }
-
-            switch (elt.readAttribute('id')) {
-            case 'add_button':
-                this._sendData('add', '');
-                break;
-
-            case 'cancel_button':
-                this._sendData('', '');
-                break;
-
-            case 'new_button':
-                this._sendData('new', '');
-                break;
-            }
-
-            elt = elt.up();
-        }
-    }
-
-};
-
-document.observe('dom:loaded', function() {
-    var am = ImpAccountsmanagement;
-    document.observe('click', am.clickHandler.bindAsEventListener(am));
-});