generic/new_item: back auf js browser back umgestellt
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 6 Jan 2014 15:43:35 +0000 (16:43 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 6 Jan 2014 15:43:35 +0000 (16:43 +0100)
workaround für #2241

templates/webpages/generic/new_item.html

index 82b6f74..d6219e6 100644 (file)
 
       <input type="hidden" name="action" value="dispatcher">
       <input class="submit" type="submit" name="action_add" value="[% 'Continue' | $T8 %]">
-      <input class="submit" type="submit" name="action_back_to_record" value="[% 'Back' | $T8 %]">
+      <input id='back_button' type='button' class="submit" value="[% 'Back' | $T8 %]">
     </form>
+<script type='text/javascript'>
+  $(function(){ $('#back_button').click(function(){ window.history.back(-1) }) })
+</script>