Export as Tripleloader format command was broken by menu bar refactoring

git-svn-id: http://google-refine.googlecode.com/svn/trunk@1108 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-07-25 07:30:49 +00:00
parent 4522b98f32
commit 67daaf2140

View File

@ -292,23 +292,14 @@ MenuBar.prototype._deactivateMenu = function() {
this._mode = "inactive"; this._mode = "inactive";
}; };
MenuBar.prototype._doDenormalizeRecords = function() { MenuBar.handlers.exportTripleloader = function(format) {
Gridworks.postProcess(
"denormalize",
{},
null,
{ modelsChanged: true }
);
};
MenuBar.prototype._doExportTripleloader = function(format) {
if (!theProject.overlayModels.freebaseProtograph) { if (!theProject.overlayModels.freebaseProtograph) {
alert( alert(
"You haven't done any schema alignment yet,\nso there is no triple to export.\n\n" + "You haven't done any schema alignment yet,\nso there is no triple to export.\n\n" +
"Use the Schemas > Edit Schema Alignment Skeleton...\ncommand to align your data with Freebase schemas first." "Use the Schemas > Edit Schema Alignment Skeleton...\ncommand to align your data with Freebase schemas first."
); );
} else { } else {
this._doExportRows(format, "txt"); MenuBar.handlers.exportRows(format, "txt");
} }
}; };