When "change" is clicked in a facet, and the expression bar is opened, then it should automatically open the dialog box to edit the expression.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@1553 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-10-15 04:23:46 +00:00
parent fdc6fee052
commit 15e715dce4
3 changed files with 15 additions and 3 deletions

View File

@ -142,7 +142,11 @@ ListFacet.prototype._initializeUI = function() {
this._elmts.titleSpan.text(this._config.name);
this._elmts.changeButton.attr("title","Current Expression: " + this._config.expression).click(function() {
self._elmts.expressionDiv.slideToggle(100);
self._elmts.expressionDiv.slideToggle(100, function() {
if (self._elmts.expressionDiv.css("display") != "none") {
self._editExpression();
}
});
});
this._elmts.expressionDiv.text(this._config.expression).hide().click(function() { self._editExpression(); });
this._elmts.removeButton.click(function() { self._remove(); });

View File

@ -121,7 +121,11 @@ RangeFacet.prototype._initializeUI = function() {
this._elmts.facetTitle.text(this._config.name);
this._elmts.changeButton.attr("title","Current Expression: " + this._config.expression).click(function() {
self._elmts.expressionDiv.slideToggle(100);
self._elmts.expressionDiv.slideToggle(100, function() {
if (self._elmts.expressionDiv.css("display") != "none") {
self._editExpression();
}
});
});
this._elmts.expressionDiv.text(this._config.expression).click(function() {
self._editExpression();

View File

@ -122,7 +122,11 @@ TimeRangeFacet.prototype._initializeUI = function() {
this._elmts.facetTitle.text(this._config.name);
this._elmts.changeButton.attr("title","Current Expression: " + this._config.expression).click(function() {
self._elmts.expressionDiv.slideToggle(100);
self._elmts.expressionDiv.slideToggle(100, function() {
if (self._elmts.expressionDiv.css("display") != "none") {
self._editExpression();
}
});
});
this._elmts.expressionDiv.text(this._config.expression).click(function() {
self._editExpression();