0012144: setup login panel logo replaced with default logo
authorsstamer <s.stamer@metaways.de>
Thu, 25 Aug 2016 14:29:22 +0000 (16:29 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Wed, 31 Aug 2016 16:22:28 +0000 (18:22 +0200)
Save the Setup Logo!

https://forge.tine20.org/view.php?id=12144

Change-Id: I89ee83dc4de4f11c2e372edd1e0e0ab3ba8135fc
Reviewed-on: http://gerrit.tine20.com/customers/3485
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
Tested-by: Philipp Schüle <p.schuele@metaways.de>
tine20/Tinebase/js/LoginPanel.js

index 838625b..faf0217 100644 (file)
@@ -34,6 +34,11 @@ Tine.Tinebase.LoginPanel = Ext.extend(Ext.Panel, {
     loginMethod: 'Tinebase.login',
     
     /**
+     * @cfg {String} loginLogo logo to show
+     */
+    loginLogo: null,
+    
+    /**
      * @cfg {String} onLogin callback after successfull login
      */
     onLogin: Ext.emptyFn,
@@ -57,10 +62,10 @@ Tine.Tinebase.LoginPanel = Ext.extend(Ext.Panel, {
      * @return {Ext.FromPanel}
      */
     getLoginPanel: function () {
-
-        var modSsl = Tine.Tinebase.registry.get('modSsl');
         //Do we have a cutom Logo for branding?
-
+        var modSsl = Tine.Tinebase.registry.get('modSsl')
+            logo = this.loginLogo ? this.loginLogo : Tine.logo;
+        
         if (! this.loginPanel) {
             this.loginPanel = new Ext.FormPanel({
                 width: 460,
@@ -72,7 +77,7 @@ Tine.Tinebase.LoginPanel = Ext.extend(Ext.Panel, {
                     xtype: 'container',
                     cls: 'tb-login-lobobox',
                     border: false,
-                    html: '<a target="_blank" href="' + Tine.weburl + '" border="0"><img src="' + Tine.logo + '" /></a>'
+                    html: '<a target="_blank" href="' + Tine.weburl + '" border="0"><img src="' + logo + '" /></a>'
                 }, {
                     xtype: 'label',
                     cls: 'tb-login-big-label',