Fixed typo "cancelImportinJob".

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2440 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2012-01-29 08:01:05 +00:00
parent 05acd64579
commit 4fbfd17ddf
3 changed files with 8 additions and 8 deletions

View File

@ -176,7 +176,7 @@ Refine.GDataImportingController.prototype._showParsingPanel = function() {
this._parsingPanelElmts.startOverButton.click(function() { this._parsingPanelElmts.startOverButton.click(function() {
// explicitly cancel the import job // explicitly cancel the import job
Refine.CreateProjectUI.cancelImportinJob(self._jobID); Refine.CreateProjectUI.cancelImportingJob(self._jobID);
delete self._doc; delete self._doc;
delete self._jobID; delete self._jobID;
@ -366,7 +366,7 @@ Refine.GDataImportingController.prototype._createProject = function() {
}, },
function(jobID, job) { function(jobID, job) {
window.clearInterval(timerID); window.clearInterval(timerID);
Refine.CreateProjectUI.cancelImportinJob(jobID); Refine.CreateProjectUI.cancelImportingJob(jobID);
document.location = "project?project=" + job.config.projectID; document.location = "project?project=" + job.config.projectID;
}, },
function(job) { function(job) {
@ -381,7 +381,7 @@ Refine.GDataImportingController.prototype._createProject = function() {
window.clearInterval(timerID); window.clearInterval(timerID);
// explicitly cancel the import job // explicitly cancel the import job
$.post("/command/core/cancel-importing-job?" + $.param({ "jobID": jobID })); Refine.CreateProjectUI.cancelImportingJob(jobID);
self._createProjectUI.showSourceSelectionPanel(); self._createProjectUI.showSourceSelectionPanel();
}); });

View File

@ -255,6 +255,6 @@ Refine.CreateProjectUI.composeErrorMessage = function(job) {
return messages.join('\n'); return messages.join('\n');
}; };
Refine.CreateProjectUI.cancelImportinJob = function(jobID) { Refine.CreateProjectUI.cancelImportingJob = function(jobID) {
$.post("/command/core/cancel-importing-job?" + $.param({ "jobID": jobID })); $.post("/command/core/cancel-importing-job?" + $.param({ "jobID": jobID }));
}; };

View File

@ -51,7 +51,7 @@ Refine.DefaultImportingController.parserUIs = {};
Refine.DefaultImportingController.prototype._startOver = function() { Refine.DefaultImportingController.prototype._startOver = function() {
if (this._jobID) { if (this._jobID) {
Refine.CreateProjectUI.cancelImportinJob(this._jobID); Refine.CreateProjectUI.cancelImportingJob(this._jobID);
} }
this._disposeFileSelectionPanel(); this._disposeFileSelectionPanel();
@ -121,7 +121,7 @@ Refine.DefaultImportingController.prototype.startImportJob = function(form, prog
window.clearInterval(timerID); window.clearInterval(timerID);
// explicitly cancel the import job // explicitly cancel the import job
Refine.CreateProjectUI.cancelImportinJob(jobID); Refine.CreateProjectUI.cancelImportingJob(jobID);
self._createProjectUI.showSourceSelectionPanel(); self._createProjectUI.showSourceSelectionPanel();
}); });
@ -298,7 +298,7 @@ Refine.DefaultImportingController.prototype._createProject = function() {
return "projectID" in job.config; return "projectID" in job.config;
}, },
function(jobID, job) { function(jobID, job) {
Refine.CreateProjectUI.cancelImportinJob(jobID); Refine.CreateProjectUI.cancelImportingJob(jobID);
document.location = "project?project=" + job.config.projectID; document.location = "project?project=" + job.config.projectID;
}, },
function(job) { function(job) {
@ -314,7 +314,7 @@ Refine.DefaultImportingController.prototype._createProject = function() {
window.clearInterval(timerID); window.clearInterval(timerID);
// explicitly cancel the import job // explicitly cancel the import job
Refine.CreateProjectUI.cancelImportinJob(self._jobID); Refine.CreateProjectUI.cancelImportingJob(self._jobID);
self._createProjectUI.showSourceSelectionPanel(); self._createProjectUI.showSourceSelectionPanel();
}); });