allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [3/9] git commit: [#5673] ticket:299 Remember search parameters when submitting bulk edit form
Date Thu, 04 Apr 2013 16:38:07 GMT
[#5673] ticket:299 Remember search parameters when submitting bulk edit form


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/b6347336
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/b6347336
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/b6347336

Branch: refs/heads/master
Commit: b6347336eb3db7da58e0c1b3ff926a1fbd3fd33a
Parents: 16a253c
Author: Aleksey 'LXj' Alekseyev <gotletter@gmail.com>
Authored: Mon Mar 25 19:44:19 2013 +0200
Committer: Igor Bondarenko <jetmind2@gmail.com>
Committed: Thu Apr 4 08:06:43 2013 +0000

----------------------------------------------------------------------
 .../templates/tracker_widgets/mass_edit_form.html  |    1 +
 ForgeTracker/forgetracker/tracker_main.py          |    2 +-
 .../forgetracker/widgets/resources/js/mass-edit.js |    1 +
 3 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/b6347336/ForgeTracker/forgetracker/templates/tracker_widgets/mass_edit_form.html
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/templates/tracker_widgets/mass_edit_form.html b/ForgeTracker/forgetracker/templates/tracker_widgets/mass_edit_form.html
index 0784d19..f46f273 100644
--- a/ForgeTracker/forgetracker/templates/tracker_widgets/mass_edit_form.html
+++ b/ForgeTracker/forgetracker/templates/tracker_widgets/mass_edit_form.html
@@ -73,4 +73,5 @@
     </div>
     <div class="grid-12" id="result"></div>
     <input name="selected" type="hidden" value="" id="id_selected" />
+    <input name="search" type="hidden" value="" id="id_search" />
 </form>

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/b6347336/ForgeTracker/forgetracker/tracker_main.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/tracker_main.py b/ForgeTracker/forgetracker/tracker_main.py
index 6c39e68..58ebab1 100644
--- a/ForgeTracker/forgetracker/tracker_main.py
+++ b/ForgeTracker/forgetracker/tracker_main.py
@@ -789,7 +789,7 @@ class RootController(BaseController):
                 ticket.commit()
         c.app.globals.invalidate_bin_counts()
         ThreadLocalORMSession.flush_all()
-        redirect('edit')
+        redirect('edit/' + post_data['search'])
 
 # tickets
 # open tickets

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/b6347336/ForgeTracker/forgetracker/widgets/resources/js/mass-edit.js
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/widgets/resources/js/mass-edit.js b/ForgeTracker/forgetracker/widgets/resources/js/mass-edit.js
index b75bdf1..f9ae973 100644
--- a/ForgeTracker/forgetracker/widgets/resources/js/mass-edit.js
+++ b/ForgeTracker/forgetracker/widgets/resources/js/mass-edit.js
@@ -1,4 +1,5 @@
 $(function(){
+    $('#id_search').val(window.location.search);
     $('#assigned_to').val('');
     $('#select_all').click(function(){
         if(this.checked){


Mime
View raw message