Code

Updated framework to do no-double loads
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 May 2007 10:00:16 +0000 (10:00 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 May 2007 10:00:16 +0000 (10:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6463 594d385d-05f5-0310-b6e9-bd551577e9d8

ihtml/themes/default/framework.tpl

index f51784b56461c7754e611e427150c6147013d228..51449bc47dd480af9aaf3be189c8bbe3f422311a 100644 (file)
       <table style="margin-left:20px;" border="0" summary="">
        <tr>
         <td style="vertical-align:middle;">
+       {if !$javascript}
         <a class="maintitlebar" href='main.php?reset=1' onClick='return question("{t}You are currently editing a database entry. Do you want to dismiss the changes?{/t}", "main.php?reset=1");' >
+       {else}
+        <a class="maintitlebar" onClick='return question("{t}You are currently editing a database entry. Do you want to dismiss the changes?{/t}", "main.php?reset=1");' >
+       {/if}
          <img src='{$go_home}' class='center' border="0" alt="Main">&nbsp;{t}Main{/t}
         </a>
        </td>
          </a>
        </td>
        <td>
+       {if !$javascript}
         <a class="maintitlebar" href='logout.php?request' onClick='return question("{t}You are currently editing a database entry. Do you want to dismiss the changes?{/t}", "logout.php?request");' style="margin-left:35px;">
           <img src='{$go_out}' class='center' border="0" alt="Sign out">&nbsp;{t}Sign out{/t}
          </a>
+       {else}
+        <a class="maintitlebar" onClick='return question("{t}You are currently editing a database entry. Do you want to dismiss the changes?{/t}", "logout.php?request");' style="margin-left:35px;">
+          <img src='{$go_out}' class='center' border="0" alt="Sign out">&nbsp;{t}Sign out{/t}
+         </a>
+       {/if}
        </td>
        </tr>
       </table>