[commits] [Wiki] changed: AltH4Quota

Wiki Guest wikiguest at horde.org
Tue Aug 16 15:59:43 UTC 2011


guest [146.164.76.15]  Tue, 16 Aug 2011 15:59:42 +0000

Modified page: http://wiki.horde.org/AltH4Quota
New Revision:  1.1
Change log:  Added modification to dimpbase.js folderLoadCallback and  
horde4.0.8, imp5.0.9

@@ -2,17 +2,17 @@
  +++ Notes
  **IMP 5, Horde 4**
  **Modifies traditional and dynamic views to display quotas**.

-This describes modifications to IMP 5.0.8 (Horde 4.0.7) quota \
+This describes modifications to IMP 5 (Horde 4) quota \
  to use two different devices (file systems) with quota enabled. \
  One is for INBOX and the other is for IMAP folders.

  This allows different quota values for INBOX and IMAP folders.

  It uses system quota command.

-Tested on Debian 6.0 (squeeze), horde-4.0.7 and imp-5.0.8.
+Tested on Debian 6.0 (squeeze), horde-4.0.8 and imp-5.0.9.
  ----
  +++ Modifications

  ||~ File ||~ Variables, Function(s) ||
@@ -23,9 +23,9 @@
  || imp/lib/IMP.php || quota, quotaData ||
  || imp/templates/dimp/index.inc || if ($show_quota) ||
  || imp/templates/quota/quota.html ||  ||
  || imp/themes/default/dimp/screen.css || ini header ||
-|| imp/js/dimpbase.js || _displayQuota ||
+|| imp/js/dimpbase.js || pollCallback, _displayQuota, _folderLoadCallback ||


  You must modify the nine files. Don't forget to change permission to  
each of them:
  <code>
@@ -37,9 +37,9 @@
  <code>
  chmod  +s  /usr/bin/quota
  </code>

-//Last updated 2011-08-09//
+//Last updated 2011-08-16//
  ----
  +++ Descriptions
  ----
  ++++ Configuration example
@@ -1023,9 +1023,9 @@
  * _displayQuotah, mh, ph
  * _displayQuotav, mv, pv

  Backup your original imp/js/dimpbase.js. Edit dimpbase.js and and  
replace the following codes:
-**Form:** (line 1765)
+**Form:** (pollCallback)
  <code type="php">
          if (r.quota) {
              this._displayQuota(r.quota);
          }
@@ -1036,9 +1036,9 @@
              this._displayQuotav(r.quotav);
              this._displayQuotah(r.quotah);
  			}
  </code>
-**Form:** (line 1772, _displayQuota)
+**Form:** (_displayQuota)
  <code type="php">
      _displayQuota: function(r)
      {
          var q = $('quota').cleanWhitespace();
@@ -1060,5 +1060,18 @@
          var q = $('quotav').cleanWhitespace();
          $('quotav-text').setText(r.mv);
          q.down('SPAN.used IMG').writeAttribute('width', 99 - r.pv);
      },
+</code>
+**Form:** (_folderLoadCallback)
+<code type="php">
+        if (r.response.quota) {
+            this._displayQuota(r.response.quota);
+        }
+</code>
+**To:**
+<code type="php">
+        if (r.response.quotah) {
+            this._displayQuotah(r.response.quotah);
+            this._displayQuotav(r.response.quotav);
+		}
  </code>



More information about the commits mailing list