Преглед на файлове

Merge branch 'wrdp' into 'develop'

Wrdp

See merge request o2oa/o2oa!3114
胡起 преди 4 години
родител
ревизия
07fd5bbc45
променени са 1 файла, в които са добавени 10 реда и са изтрити 2 реда
  1. 10 2
      o2web/source/x_component_process_Work/Main.js

+ 10 - 2
o2web/source/x_component_process_Work/Main.js

@@ -725,14 +725,14 @@ MWF.xApplication.process.Work.Main = new Class({
                 this.appForm.workAction = this.action;
                 this.appForm.app = this;
 
-                if  (layout.desktop.type !== "layout") layout.appForm = this.appForm;
-
                 if( this.$events && this.$events.queryLoadForm ){
                     this.appForm.addEvent( "queryLoad", function () {
                         this.fireEvent("queryLoadForm");
                     }.bind(this));
                 }
 
+                if  (layout.desktop.type !== "layout") layout.appForm = this.appForm;
+
                 this.appForm.load(function(){
                     if (this.mask) this.mask.hide();
                     if (window.o2android && window.o2android.appFormLoaded){
@@ -747,6 +747,14 @@ MWF.xApplication.process.Work.Main = new Class({
                         this.appForm.processWork();
                         this.options.action = "";
                     }
+
+                    if (window.o2 && window.o2.appFormLoaded){
+                        window.o2.appFormLoaded('true');
+                    }
+                    if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.appFormLoaded){
+                        window.webkit.messageHandlers.appFormLoaded.postMessage('true')
+                    }
+
                     this.fireEvent("postLoadForm");
                 }.bind(this));
             }.bind(this));