[commits] [Wiki] changed: AltH5Imp6Quota

Wiki Guest wikiguest at horde.org
Mon Feb 18 21:41:13 UTC 2013


guest [146.164.76.15]  Mon, 18 Feb 2013 21:41:13 +0000

Modified page: http://wiki.horde.org/AltH5Imp6Quota
New Revision:  4
Change log:  Horde 5.0.4, IMP 6.0.4

@@ -10,9 +10,10 @@
  This allows different quota values for INBOX and IMAP folders.

  It uses system quota command.

-Tested on Debian 6.0 (squeeze), Horde 5.0.3, IMP 6.0.3
+Tested on Debian 6.0 (squeeze), Horde 5.0.3-IMP 6.0.3, Horde 5.0.4-IMP 6.0.4
+
  ----
  +++ Modifications

  ||~ File ||~ Variables, Function(s) ||
@@ -23,11 +24,12 @@
  || imp/templates/basic/subinfo.html.php || quotaClassV, quotaClassH ||
  || imp/templates/dynamic/mailbox_subinfo.html.php || quota-text ||
  || imp/lib/Ui/Quota.php || quota ||
  || imp/lib/Ajax/Queue.php || m, p, l, add ||
-|| imp/js/dimpbase.js || quotaV, quotaH, quotaCallback ||
+|| imp/js/dimpbase.js (IMP 6.0.3) || quotaV, quotaH, quotaCallback ||
+|| imp/js/dimpbase.js (IMP 6.0.4) || quotaV, quotaH, quotaCallback ||

-//Last updated 2013-01-17//
+//Last updated 2013-02-18//
  ----
  +++ Descriptions
  ----
  ++++ Configuration example (imp/config/backends.php)
@@ -599,9 +601,9 @@
          }
      }
  </code>
  ----
-++++ imp/js/dimpbase.js
+++++ imp/js/dimpbase.js (IMP 6.0.3)
  * quotaCallback
  > quotaV, mv, lv
  > quotaH, mh, lh

@@ -642,5 +644,38 @@
              break;
          }
      },
  </code>
+----
+++++ imp/js/dimpbase.js (IMP 6.0.4)
+* quotaCallback
+> quotaV, mv, lv
+> quotaH, mh, lh

+Backup your original imp/js/dimpbase.js. Edit dimpbase.js and replace  
function quotaCallback with the following code:
+<code type="php">
+    quotaCallback: function(r)
+    {
+        var quotaV = $('quota-textV');
+        var quotaH = $('quota-textH');
+        quotaV.removeClassName('quotaalert').
+            removeClassName('quotawarn').
+            setText(r.mv);
+        quotaH.removeClassName('quotaalert').
+            removeClassName('quotawarn').
+            setText(r.mh);
+
+        switch (r.lv) {
+        case 'alert':
+        case 'warn':
+            quotaV.addClassName('quota' + r.lv);
+            break;
+        }
+
+        switch (r.lh) {
+        case 'alert':
+        case 'warn':
+            quotaH.addClassName('quota' + r.lh);
+            break;
+        }
+    },
+</code>



More information about the commits mailing list