src/org/openbravo/erpCommon/utility/PopupLoading.html
changeset 16506 408a83fb81ae
parent 9072 79e55dfc8af0
child 16507 4914bc66fa28
equal deleted inserted replaced
16505:fae3a9d99ec8 16506:408a83fb81ae
     9  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
     9  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
    10  * License for the specific  language  governing  rights  and  limitations
    10  * License for the specific  language  governing  rights  and  limitations
    11  * under the License. 
    11  * under the License. 
    12  * The Original Code is Openbravo ERP. 
    12  * The Original Code is Openbravo ERP. 
    13  * The Initial Developer of the Original Code is Openbravo SLU 
    13  * The Initial Developer of the Original Code is Openbravo SLU 
    14  * All portions are Copyright (C) 2008-2010 Openbravo SLU 
    14  * All portions are Copyright (C) 2008-2012 Openbravo SLU 
    15  * All Rights Reserved. 
    15  * All Rights Reserved. 
    16  * Contributor(s):  ______________________________________.
    16  * Contributor(s):  ______________________________________.
    17  ************************************************************************
    17  ************************************************************************
    18 -->
    18 -->
    19 <html>
    19 <html>
    35 <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
    35 <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
    36 
    36 
    37 
    37 
    38   <script language="javascript">
    38   <script language="javascript">
    39     function onLoadDo() {
    39     function onLoadDo() {
    40       window.opener.setPopupLoadingWindowLoaded(true);
    40       moreOnLoadDoFunctions();
       
    41       var i=0;
       
    42       var setOpenerInterval = setInterval(
       
    43         function() {
       
    44           if (window.opener || i === 30000) {
       
    45             window.opener.setPopupLoadingWindowLoaded(true);
       
    46             clearInterval(setOpenerInterval);
       
    47           } else {
       
    48             i++;
       
    49           }
       
    50         }, 10);
    41       return true;
    51       return true;
    42     }
    52     }
    43   </script>
    53   </script>
    44 </head>
    54 </head>
    45 
    55