[vhffs-dev] [1951] Added missing files |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1951
Author: beuss
Date: 2012-01-26 21:18:22 +0100 (Thu, 26 Jan 2012)
Log Message:
-----------
Added missing files
Added Paths:
-----------
trunk/vhffs-panel/js/LICENSE
trunk/vhffs-panel/js/vhffs/panel/
trunk/vhffs-panel/js/vhffs/panel/user/
trunk/vhffs-panel/js/vhffs/panel/user/prefs.js
Added: trunk/vhffs-panel/js/LICENSE
===================================================================
--- trunk/vhffs-panel/js/LICENSE (rev 0)
+++ trunk/vhffs-panel/js/LICENSE 2012-01-26 20:18:22 UTC (rev 1951)
@@ -0,0 +1,32 @@
+License below applies to all files in this directory and its
+children, except those in dijit, dojo and dojox subdirectories.
+
+Copyright (c) vhffs project and its contributors
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+3. Neither the name of vhffs nor the names of its contributors
+ may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
Added: trunk/vhffs-panel/js/vhffs/panel/user/prefs.js
===================================================================
--- trunk/vhffs-panel/js/vhffs/panel/user/prefs.js (rev 0)
+++ trunk/vhffs-panel/js/vhffs/panel/user/prefs.js 2012-01-26 20:18:22 UTC (rev 1951)
@@ -0,0 +1,34 @@
+dojo.addOnLoad(function() {
+ dojo.require("dojo.fx");
+ dojo.require("dojo.parser");
+
+ var mailUsage = dojo.byId("platform-email-options");
+ var mailUsageWipeIn = dojo.fx.wipeIn( { node: mailUsage } );
+ var mailUsageWipeOut = dojo.fx.wipeOut( { node: mailUsage } );
+ dojo.connect(dojo.byId("activate-platform-email"), "onchange", function() {
+ if(this.checked) {
+ mailUsageWipeOut.stop();
+ mailUsageWipeIn.play();
+ } else {
+ mailUsageWipeIn.stop();
+ mailUsageWipeOut.play();
+ }
+ });
+
+ var mailboxOptions = dojo.byId("platform-email-box-options");
+ var mailBoxOptionsWipeIn = dojo.fx.wipeIn( { node: mailboxOptions });
+ var mailBoxOptionsWipeOut = dojo.fx.wipeOut( { node: mailboxOptions });
+ dojo.connect(dojo.byId("plaftorm-email-option-box"), "onchange", handleMailBoxOptionChange);
+ dojo.connect(dojo.byId("plaftorm-email-option-forward"), "onchange", handleMailBoxOptionChange);
+
+
+ function handleMailBoxOptionChange() {
+ if(dojo.byId("plaftorm-email-option-box").checked) {
+ mailBoxOptionsWipeOut.stop();
+ mailBoxOptionsWipeIn.play();
+ } else {
+ mailBoxOptionsWipeIn.stop();
+ mailBoxOptionsWipeOut.play();
+ }
+ }
+});