When editing a facet choice inside a facet, still apply constraints from all the other facets to restrict the effect of the change.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@567 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-04-29 00:54:48 +00:00
parent f9698d77ae
commit c56a578166
2 changed files with 7 additions and 2 deletions

View File

@ -395,7 +395,8 @@ ListFacet.prototype._editChoice = function(choice, choiceDiv) {
}])
},
{
includeEngine: false, // we're really changing all rows, not just the visible ones
// limit edits to rows constrained only by the other facets
engineConfig: ui.browsingEngine.getJSON(false, self),
cellsChanged: true
},
{

View File

@ -205,7 +205,11 @@ Gridworks.postProcess = function(command, params, body, updateOptions, callbacks
body = body || {};
if (!("includeEngine" in updateOptions) || updateOptions.includeEngine) {
body.engine = JSON.stringify(ui.browsingEngine.getJSON());
body.engine = JSON.stringify(
"engineConfig" in updateOptions ?
updateOptions.engineConfig :
ui.browsingEngine.getJSON()
);
}
var done = false;