Factored out url to gridworks-helper app, and used a versioned url instead of the published or the dev url.
Made sure in the protograph link popup we show no more than 10 property suggestions. git-svn-id: http://google-refine.googlecode.com/svn/trunk@622 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
f7151cdbaa
commit
164abc2057
@ -65,7 +65,7 @@ ExtendDataPreviewDialog.getAllProperties = function(typeID, onDone) {
|
||||
var done = false;
|
||||
|
||||
$.getJSON(
|
||||
"http://gridworks-helper.freebaseapps.com/get_properties_of_type?type=" + typeID + "&callback=?",
|
||||
Gridworks.gridworksHelperService + "get_properties_of_type?type=" + typeID + "&callback=?",
|
||||
null,
|
||||
function(data) {
|
||||
if (done) return;
|
||||
|
@ -2,6 +2,7 @@ var theProject;
|
||||
var ui = {};
|
||||
|
||||
var Gridworks = {
|
||||
gridworksHelperService: "http://1-0.gridworks-helper.dfhuynh.user.dev.freebaseapps.com/"
|
||||
};
|
||||
|
||||
Gridworks.reportException = function(e) {
|
||||
|
@ -138,7 +138,7 @@ SchemaAlignmentDialog.UILink._getPropertiesOfType = function(typeID, targetTypeI
|
||||
}
|
||||
|
||||
$.getJSON(
|
||||
"http://gridworks-helper.freebaseapps.com/get_properties_of_type?" + $.param(params) + "&callback=?",
|
||||
Gridworks.gridworksHelperService + "get_properties_of_type?" + $.param(params) + "&callback=?",
|
||||
null,
|
||||
function(data) {
|
||||
if (done) return;
|
||||
@ -202,7 +202,7 @@ SchemaAlignmentDialog.UILink.prototype._showPropertySuggestPopup = function(elmt
|
||||
});
|
||||
};
|
||||
|
||||
for (var i = 0; i < suggestions.length; i++) {
|
||||
for (var i = 0; i < suggestions.length && i < 10; i++) {
|
||||
createSuggestion(suggestions[i]);
|
||||
}
|
||||
} else {
|
||||
|
@ -66,7 +66,7 @@
|
||||
|
||||
$.extend(data, o.ac_param);
|
||||
|
||||
var baseUrl = "http://gridworks-helper.freebaseapps.com/suggest_property";
|
||||
var baseUrl = Gridworks.gridworksHelperService + "suggest_property";
|
||||
var url = baseUrl + "?" + $.param(data),
|
||||
|
||||
cached = $.suggest.cache[url];
|
||||
|
Loading…
Reference in New Issue
Block a user