From 5884d257db28b24798be634b8868a3df1f871934 Mon Sep 17 00:00:00 2001 From: Stefano Mazzocchi Date: Wed, 31 Mar 2010 01:07:17 +0000 Subject: [PATCH] default to 'relevance' instead of recon (which is faster). Change to recon if the user suggests schema hooks. git-svn-id: http://google-refine.googlecode.com/svn/trunk@363 7d457c2a-affb-35e4-300a-418c747d4874 --- src/main/webapp/scripts/dialogs/recon-dialog.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/scripts/dialogs/recon-dialog.js b/src/main/webapp/scripts/dialogs/recon-dialog.js index 5172e3be0..310fa7eb3 100644 --- a/src/main/webapp/scripts/dialogs/recon-dialog.js +++ b/src/main/webapp/scripts/dialogs/recon-dialog.js @@ -65,8 +65,8 @@ ReconDialog.prototype._createDialog = function() { '' + '' + 'Use ' + - ' recon service ' + - ' relevance service ' + + ' relevance service ' + + ' recon service ' + '' + '' + '' + @@ -179,7 +179,7 @@ ReconDialog.prototype._wireEvents = function() { var self = this; this._elmts.heuristicTypeInput - .suggestT({ type : '/type/type' }) + .suggest({ type : '/type/type' }) .bind("fb-select", function(e, data) { $('input[name="recon-dialog-type-choice"][value=""]').attr("checked", "true"); @@ -199,10 +199,12 @@ ReconDialog.prototype._wireEvents = function() { ReconDialog.prototype._rewirePropertySuggests = function(schema) { var inputs = $('input[name="recon-dialog-heuristic-property"]'); - inputs.suggestP({ - type: '/type/property', - schema: schema || "/common/topic" - }); + inputs.suggest({ + type: '/type/property', + schema: schema || "/common/topic" + }).bind("fb-select", function(e, data) { + $('input[name="recon-dialog-heuristic-service"][value="recon"]').attr("checked", "true"); + }); }; ReconDialog.prototype._onOK = function() {