# HG changeset patch
# User Javier Armendáriz <javier.armendariz@openbravo.com>
# Date 1514278376 -3600
#      Tue Dec 26 09:52:56 2017 +0100
# Node ID b5ced32851dc1b40fedb096ac528eeda616197e1
# Parent  bcebf5ea2f9600fbab552d62cd6e5215f79f535d
Fixed bug 34668: Cannot tap to Workspace tab after Registration popup appears.

This happened because the registration view extends from isc.Layout, which creates an invisible div at the top of the screen which is not removed when the popup closes, preventing the user to tap in this area.
Now this view extends from isc.Class, same as other views that shows popups from ClassicOBCompatibility.Popup.

diff --git a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-compatibility.js b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-compatibility.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-compatibility.js
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-compatibility.js
@@ -689,10 +689,9 @@
   cobcomp = L.ClassicOBCompatibility = new ClassicOBCompatibility();
 }(OB, isc));
 
-isc.ClassFactory.defineClass('OBUIAPP_RegistrationView', isc.Layout).addProperties({
-  initWidget: function () {
-    OB.Layout.ClassicOBCompatibility.Popup.openRegistration();
-
-    this.Super('initWidget', arguments);
+isc.ClassFactory.defineClass('OBUIAPP_RegistrationView', isc.Class).addProperties({
+  showsItself: true,
+  show: function() {
+	  OB.Layout.ClassicOBCompatibility.Popup.openRegistration();
   }
 });
\ No newline at end of file
