Changeset 94cf66af4da5e127db840a3f4d860852b2004ce1

Show
Ignore:
Timestamp:
09/14/08 10:51:40 (2 months ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1221382300 +0200
git-parent:

[a366f6a4a8ef1e9f10e7048d51e3db89e439f191]

git-author:
Simon Dietsch <rhonabwy@sternenbund.org> 1221382300 +0200
Message:

[bug] Versuch Behebung Javascriptfehler in Flottenfenster

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • templates/fleetmgnt.html

    r8866c32 r94cf66a  
    1 <script type="text/javascript"> 
    2 <!-- 
    3         function showShip( ship ) { 
    4                 opener.parent.frames['main'].location.href = './ds?module=schiff&sess={global.sess}&ship='+ship; 
    5         } 
    6  
    7         function refreshOwn() { 
    8                 window.location.href = './ds?module=fleetmgnt&sess={global.sess}&fleet={fleet.id}'; 
    9         } 
    10  
    11         function removeShip( ship ) { 
    12                 opener.parent.frames['main'].location.href = './ds?module=schiff&sess={global.sess}&ship='+ship+'&action=join&join=0'; 
    13                 window.setTimeout("refreshOwn()", 1000); 
    14         } 
    15  
    16         function showBattle( battle, ship ) { 
    17                 opener.parent.frames['main'].location.href = './ds?module=angriff&sess={global.sess}&battle='+battle+'&ship='+ship; 
    18                 window.close(); 
    19         } 
    20          
    21         var sessid; 
    22          
    23         function reloadMainpage(sess) { 
    24                 sessid = sess; 
    25                 window.setTimeout("reloadMainpage2()", 1000); 
    26         } 
    27          
    28         {if jscript.reloadmain} 
    29                 var shipid = {jscript.reloadmain.ship}; 
    30                  
    31                 function reloadMainpage2() { 
    32                         var szUrl = opener.parent.frames['main'].location.href; 
    33                         if( (szUrl.search(/\?/) == -1) && (szUrl.search(/ship=/) == -1) && (shipid > 0) ) { 
    34                                 szUrl = szUrl + '?sess='+sessid+'&ship='+shipid; 
    35                         } 
    36                         szUrl = szUrl + "&tmp=1"; 
    37  
    38                         var szUrl2 = szUrl.replace(/plugin=(.*)\&/,"&"); 
    39                         szUrl2 = szUrl2.replace(/join=(.*)\&/,"&"); 
    40                         szUrl2 = szUrl2.replace(/node=(.*)\&/,"&"); 
    41                         szUrl2 = szUrl2.replace(/newname=(.*)\&/,"&"); 
    42                         szUrl2 = szUrl2.replace(/shup=(.*)\&/,"&"); 
    43                         szUrl2 = szUrl2.replace(/land=(.*)\&/,"&"); 
    44                         szUrl2 = szUrl2.replace(/newowner=(.*)\&/,"&"); 
    45                         szUrl2 = szUrl2.replace(/land=(.*)\&/,"&"); 
    46                         szUrl2 = szUrl2.replace(/shiplist=(.*)\&/,"&"); 
    47                         szUrl2 = szUrl2.replace(/\&tmp=(.*)1/,""); 
    48                         szUrl2 = szUrl2.replace(/\&action=(.*)\&/,"&action=default&"); 
    49  
    50                         opener.parent.frames['main'].location = szUrl2; 
    51                 } 
    52         {else} 
    53                 function reloadMainpage2() {     
    54                 } 
    55         {/endif} 
    56 --> 
    57 </script> 
    581<span class="smallfont"> 
    592{if fleetmgnt.message} 
     
    296239{/endif} 
    297240</span> 
     241 
     242<script type="text/javascript"> 
     243<!-- 
     244        function showShip( ship ) { 
     245                opener.parent.frames['main'].location.href = './ds?module=schiff&sess={global.sess}&ship='+ship; 
     246        } 
     247 
     248        function refreshOwn() { 
     249                window.location.href = './ds?module=fleetmgnt&sess={global.sess}&fleet={fleet.id}'; 
     250        } 
     251 
     252        function removeShip( ship ) { 
     253                opener.parent.frames['main'].location.href = './ds?module=schiff&sess={global.sess}&ship='+ship+'&action=join&join=0'; 
     254                window.setTimeout("refreshOwn()", 1000); 
     255        } 
     256 
     257        function showBattle( battle, ship ) { 
     258                opener.parent.frames['main'].location.href = './ds?module=angriff&sess={global.sess}&battle='+battle+'&ship='+ship; 
     259                window.close(); 
     260        } 
     261         
     262        var sessid; 
     263         
     264        function reloadMainpage(sess) { 
     265                sessid = sess; 
     266                window.setTimeout("reloadMainpage2()", 1000); 
     267        } 
     268         
     269        {if jscript.reloadmain} 
     270                var shipid = {jscript.reloadmain.ship}; 
     271                 
     272                function reloadMainpage2() { 
     273                        var szUrl = opener.parent.frames['main'].location.href; 
     274                        if( (szUrl.search(/\?/) == -1) && (szUrl.search(/ship=/) == -1) && (shipid > 0) ) { 
     275                                szUrl = szUrl + '?sess='+sessid+'&ship='+shipid; 
     276                        } 
     277                        szUrl = szUrl + "&tmp=1"; 
     278 
     279                        var szUrl2 = szUrl.replace(/plugin=(.*)\&/,"&"); 
     280                        szUrl2 = szUrl2.replace(/join=(.*)\&/,"&"); 
     281                        szUrl2 = szUrl2.replace(/node=(.*)\&/,"&"); 
     282                        szUrl2 = szUrl2.replace(/newname=(.*)\&/,"&"); 
     283                        szUrl2 = szUrl2.replace(/shup=(.*)\&/,"&"); 
     284                        szUrl2 = szUrl2.replace(/land=(.*)\&/,"&"); 
     285                        szUrl2 = szUrl2.replace(/newowner=(.*)\&/,"&"); 
     286                        szUrl2 = szUrl2.replace(/land=(.*)\&/,"&"); 
     287                        szUrl2 = szUrl2.replace(/shiplist=(.*)\&/,"&"); 
     288                        szUrl2 = szUrl2.replace(/\&tmp=(.*)1/,""); 
     289                        szUrl2 = szUrl2.replace(/\&action=(.*)\&/,"&action=default&"); 
     290 
     291                        opener.parent.frames['main'].location = szUrl2; 
     292                } 
     293        {else} 
     294                function reloadMainpage2() {     
     295                } 
     296        {/endif} 
     297--> 
     298</script>