--- a/web/data/cubicweb.facets.js Wed Sep 09 12:27:41 2009 +0200
+++ b/web/data/cubicweb.facets.js Wed Sep 09 12:28:36 2009 +0200
@@ -66,6 +66,7 @@
extraparams['divid'] = divid;
copyParam(zipped, extraparams, 'divid');
copyParam(zipped, extraparams, 'subvid');
+ copyParam(zipped, extraparams, 'fromformfilter');
// paginate used to know if the filter box is acting, in which case we
// want to reload action box to match current selection (we don't want
// this from a table filter)
--- a/web/views/tableview.py Wed Sep 09 12:27:41 2009 +0200
+++ b/web/views/tableview.py Wed Sep 09 12:28:36 2009 +0200
@@ -59,7 +59,9 @@
xml_escape(dumps([divid, 'table', False, vidargs])))
self.w(u'<fieldset id="%sForm" class="%s">' % (divid, hidden and 'hidden' or ''))
self.w(u'<input type="hidden" name="divid" value="%s" />' % divid)
- filter_hiddens(self.w, facets=','.join(wdg.facet.id for wdg in fwidgets), baserql=baserql)
+ self.w(u'<input type="hidden" name="fromformfilter" value="1" />')
+ filter_hiddens(self.w, facets=','.join(wdg.facet.id for wdg in fwidgets),
+ baserql=baserql)
self.w(u'<table class="filter">\n')
self.w(u'<tr>\n')
for wdg in fwidgets: