From 6f2b8d39bfdbeb0f52634dee5dfe581a48514610 Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Thu, 25 Sep 2014 15:53:21 +0300 Subject: [PATCH] MT#9213 Remove list actions from form backuri, to don't repeate --- share/layout/body.tt | 1 + share/templates/rewrite/rules_list.tt | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/layout/body.tt b/share/layout/body.tt index b43f94fa51..5f38a313ae 100644 --- a/share/layout/body.tt +++ b/share/layout/body.tt @@ -159,6 +159,7 @@ var mainWrapperInit = function () { return true; } var _href = $(this).attr('href'); + var backuri = $(this).data('backuri') ? $(this).data('backuri') : '[%-backuri-%]'; var _back = 'back=[% backuri | uri %]'; if(_href == null || _href.match(/[&\?]back=/)) { // ignore diff --git a/share/templates/rewrite/rules_list.tt b/share/templates/rewrite/rules_list.tt index d3aa15aa18..c85271cd86 100644 --- a/share/templates/rewrite/rules_list.tt +++ b/share/templates/rewrite/rules_list.tt @@ -21,7 +21,6 @@ [% END -%]
- [% MACRO show_rules BLOCK -%] @@ -50,7 +49,7 @@
[% UNLESS c.user.read_only -%]