plugins/kolab_activesync

Aleksander Machniak machniak at kolabsys.com
Tue Jul 31 19:42:23 CEST 2012


 plugins/kolab_activesync/kolab_activesync.js                 |   10 +++++-----
 plugins/kolab_activesync/localization/de_CH.inc              |    1 -
 plugins/kolab_activesync/localization/de_DE.inc              |    1 -
 plugins/kolab_activesync/localization/en_US.inc              |    1 -
 plugins/kolab_activesync/localization/pl_PL.inc              |    1 -
 plugins/kolab_activesync/package.xml                         |    2 +-
 plugins/kolab_activesync/skins/classic/templates/config.html |    6 +-----
 plugins/kolab_activesync/skins/larry/templates/config.html   |    6 +-----
 8 files changed, 8 insertions(+), 20 deletions(-)

New commits:
commit b023e7fce2b59cde60a257ff1d05f964c7b1daab
Author: Aleksander Machniak <alec at alec.pl>
Date:   Tue Jul 31 19:41:41 2012 +0200

    Fix intro message when devices list isn't empty. Always select first device

diff --git a/plugins/kolab_activesync/kolab_activesync.js b/plugins/kolab_activesync/kolab_activesync.js
index 5cf9e31..b7ad998 100644
--- a/plugins/kolab_activesync/kolab_activesync.js
+++ b/plugins/kolab_activesync/kolab_activesync.js
@@ -52,11 +52,11 @@ function kolab_activesync_config()
         .closest('table').find('input.'+classname).prop('checked', check).change();
     });
 
-    // select the one and only device from list
-    if (rcmail.env.devicecount == 1) {
-        for (var imei in rcmail.env.devices)
-            break;
-        devicelist.select(imei);
+    // select first device
+    if (rcmail.env.devicecount) {
+      for (var imei in rcmail.env.devices)
+        break;
+      devicelist.select(imei);
     }
 
     /* private methods */
diff --git a/plugins/kolab_activesync/localization/de_CH.inc b/plugins/kolab_activesync/localization/de_CH.inc
index f0abdbf..bd35127 100644
--- a/plugins/kolab_activesync/localization/de_CH.inc
+++ b/plugins/kolab_activesync/localization/de_CH.inc
@@ -21,7 +21,6 @@ $labels['note'] = 'Notizen';
 $labels['deletedevice'] = 'Gerät löschen';
 $labels['imageformat'] = 'Bildformat';
 $labels['laxpiclabel'] = 'PNG- und GIF-Bilder erlauben';
-$labels['introtext'] = 'Wählen Sie das zu konfigurierende Gerät aus';
 $labels['nodevices'] = 'Es sind noch keine Geräte registriert.<br/><br/>Um ein neues Gerät anzumelden, verbinden Sie dieses zuerst mit dem Server. Eine Anleitung dazu finden Sie im <a href="http://wiki.kolab.org/Z_push#Clients">Wiki</a>. Anschliessend laden Sie diese Seite neu und das Gerät wird hier aufgelistet.';
 $labels['savingdata'] = 'Daten werden gespeichert...';
 $labels['savingerror'] = 'Fehler beim Speichern';
diff --git a/plugins/kolab_activesync/localization/de_DE.inc b/plugins/kolab_activesync/localization/de_DE.inc
index f0abdbf..bd35127 100644
--- a/plugins/kolab_activesync/localization/de_DE.inc
+++ b/plugins/kolab_activesync/localization/de_DE.inc
@@ -21,7 +21,6 @@ $labels['note'] = 'Notizen';
 $labels['deletedevice'] = 'Gerät löschen';
 $labels['imageformat'] = 'Bildformat';
 $labels['laxpiclabel'] = 'PNG- und GIF-Bilder erlauben';
-$labels['introtext'] = 'Wählen Sie das zu konfigurierende Gerät aus';
 $labels['nodevices'] = 'Es sind noch keine Geräte registriert.<br/><br/>Um ein neues Gerät anzumelden, verbinden Sie dieses zuerst mit dem Server. Eine Anleitung dazu finden Sie im <a href="http://wiki.kolab.org/Z_push#Clients">Wiki</a>. Anschliessend laden Sie diese Seite neu und das Gerät wird hier aufgelistet.';
 $labels['savingdata'] = 'Daten werden gespeichert...';
 $labels['savingerror'] = 'Fehler beim Speichern';
diff --git a/plugins/kolab_activesync/localization/en_US.inc b/plugins/kolab_activesync/localization/en_US.inc
index 2537d4d..be9fdf2 100644
--- a/plugins/kolab_activesync/localization/en_US.inc
+++ b/plugins/kolab_activesync/localization/en_US.inc
@@ -22,7 +22,6 @@ $labels['configuration'] = 'Configuration';
 $labels['deletedevice'] = 'Delete device';
 $labels['imageformat'] = 'Image format';
 $labels['laxpiclabel'] = 'Allow PNG and GIF images';
-$labels['introtext'] = 'Select a device to configure';
 $labels['nodevices'] = 'There are currently no devices registered.<br/><br/>In order to register a device, please connect it to the server first, using <a href="http://wiki.kolab.org/Z_push#Clients">the instructions in the Wiki</a>. Afterwards the device should become available for configuration here.';
 $labels['savingdata'] = 'Saving data...';
 $labels['savingerror'] = 'Failed to save configuration';
diff --git a/plugins/kolab_activesync/localization/pl_PL.inc b/plugins/kolab_activesync/localization/pl_PL.inc
index 53b5faf..980c320 100644
--- a/plugins/kolab_activesync/localization/pl_PL.inc
+++ b/plugins/kolab_activesync/localization/pl_PL.inc
@@ -21,7 +21,6 @@ $labels['note'] = 'Notatki';
 $labels['deletedevice'] = 'Usuń urządzenie';
 $labels['imageformat'] = 'Format obrazka';
 $labels['laxpiclabel'] = 'Zezwalaj na obrazki PNG i GIF';
-$labels['introtext'] = 'Wybierz urzÄ…dzenie do skonfigurowania';
 $labels['nodevices'] = 'Obecnie brak zarejestrowanych urządzeń.<br/><br/>Aby zarejestrować urządzenie najpierw podłącz je do serwera według <a href="http://wiki.kolab.org/Z_push#Clients">instrukcji z Wiki</a>. Po tym procesie urządzenie powinno dać się skonfigurować tutaj.';
 $labels['savingdata'] = 'Zapisywanie danych...';
 $labels['savingerror'] = 'Nie udało się zapisać konfiguracji';
diff --git a/plugins/kolab_activesync/package.xml b/plugins/kolab_activesync/package.xml
index bd25ca9..464dc79 100644
--- a/plugins/kolab_activesync/package.xml
+++ b/plugins/kolab_activesync/package.xml
@@ -19,7 +19,7 @@
 		<email>bruederli at kolabsys.com</email>
 		<active>yes</active>
 	</lead>
-	<date>2012-07-30</date>
+	<date>2012-07-02</date>
 	<version>
 		<release>1.0</release>
 		<api>1.0</api>
diff --git a/plugins/kolab_activesync/skins/classic/templates/config.html b/plugins/kolab_activesync/skins/classic/templates/config.html
index 13a9849..87ef463 100644
--- a/plugins/kolab_activesync/skins/classic/templates/config.html
+++ b/plugins/kolab_activesync/skins/classic/templates/config.html
@@ -41,11 +41,7 @@
 	</form>
 	<div id="introtext">
 		<div class="inner"><div class="bordered">
-			<roundcube:if condition="env:devicecount" />
-				<roundcube:label name="kolab_activesync.introtext" />
-			<roundcube:else />
-				<roundcube:label name="kolab_activesync.nodevices" html="true" />
-			<roundcube:endif />
+			<roundcube:label name="kolab_activesync.nodevices" html="true" />
 		</div></div>
 		<div class="pointer-left"></div>
 	</div>
diff --git a/plugins/kolab_activesync/skins/larry/templates/config.html b/plugins/kolab_activesync/skins/larry/templates/config.html
index 6a9d229..ae43a3d 100644
--- a/plugins/kolab_activesync/skins/larry/templates/config.html
+++ b/plugins/kolab_activesync/skins/larry/templates/config.html
@@ -43,11 +43,7 @@
 
 	<div id="introtext">
 		<div class="inner">
-			<roundcube:if condition="env:devicecount" />
-				<roundcube:label name="kolab_activesync.introtext" />
-			<roundcube:else />
-				<roundcube:label name="kolab_activesync.nodevices" html="true" />
-			<roundcube:endif />
+			<roundcube:label name="kolab_activesync.nodevices" html="true" />
 		</div>
 		<div class="pointer-left"></div>
 	</div>





More information about the commits mailing list