2011-08-02 05:34:47 +02:00
|
|
|
/*
|
|
|
|
|
|
|
|
Copyright 2011, Google Inc.
|
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
Redistribution and use in source and binary forms, with or without
|
|
|
|
modification, are permitted provided that the following conditions are
|
|
|
|
met:
|
|
|
|
|
2011-08-04 22:37:14 +02:00
|
|
|
* Redistributions of source code must retain the above copyright
|
2011-08-02 05:34:47 +02:00
|
|
|
notice, this list of conditions and the following disclaimer.
|
2011-08-04 22:37:14 +02:00
|
|
|
* Redistributions in binary form must reproduce the above
|
2011-08-02 05:34:47 +02:00
|
|
|
copyright notice, this list of conditions and the following disclaimer
|
|
|
|
in the documentation and/or other materials provided with the
|
|
|
|
distribution.
|
2011-08-04 22:37:14 +02:00
|
|
|
* Neither the name of Google Inc. nor the names of its
|
2011-08-02 05:34:47 +02:00
|
|
|
contributors may be used to endorse or promote products derived from
|
|
|
|
this software without specific prior written permission.
|
|
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
2011-08-04 22:37:14 +02:00
|
|
|
*/
|
2011-08-02 05:34:47 +02:00
|
|
|
|
|
|
|
Refine.DefaultImportingController.prototype._showFileSelectionPanel = function() {
|
2011-08-04 22:37:14 +02:00
|
|
|
var self = this;
|
|
|
|
|
2011-09-30 05:18:15 +02:00
|
|
|
this._selectedMap = {};
|
2011-08-04 22:37:14 +02:00
|
|
|
this._prepareFileSelectionPanel();
|
|
|
|
|
|
|
|
this._fileSelectionPanelElmts.nextButton.click(function() {
|
|
|
|
self._commitFileSelection();
|
|
|
|
});
|
|
|
|
this._renderFileSelectionPanel();
|
|
|
|
this._createProjectUI.showCustomPanel(this._fileSelectionPanel);
|
2011-08-02 05:34:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
Refine.DefaultImportingController.prototype._disposeFileSelectionPanel = function() {
|
2011-08-04 22:37:14 +02:00
|
|
|
if (this._fileSelectionPanelResizer) {
|
|
|
|
$(window).unbind("resize", this._fileSelectionPanelResizer);
|
|
|
|
}
|
|
|
|
this._fileSelectionPanel.unbind().empty();
|
2011-08-02 05:34:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
Refine.DefaultImportingController.prototype._prepareFileSelectionPanel = function() {
|
2013-07-02 13:40:50 +02:00
|
|
|
var self = this;
|
2011-08-04 22:37:14 +02:00
|
|
|
|
|
|
|
this._fileSelectionPanel.unbind().empty().html(
|
|
|
|
DOM.loadHTML("core", "scripts/index/default-importing-controller/file-selection-panel.html"));
|
|
|
|
|
|
|
|
this._fileSelectionPanelElmts = DOM.bind(this._fileSelectionPanel);
|
2013-07-02 13:40:50 +02:00
|
|
|
|
2018-11-21 18:30:00 +01:00
|
|
|
$('#or-import-select').text($.i18n('core-index-import/select-file'));
|
|
|
|
$('#or-import-severalFile').text($.i18n('core-index-import/several-file'));
|
|
|
|
$('#or-import-selExt').text($.i18n('core-index-import/sel-by-extension'));
|
|
|
|
$('#or-import-regex').text($.i18n('core-index-import/sel-by-regex'));
|
2013-07-02 13:40:50 +02:00
|
|
|
|
2018-11-21 18:30:00 +01:00
|
|
|
this._fileSelectionPanelElmts.startOverButton.html($.i18n('core-buttons/startover'));
|
|
|
|
this._fileSelectionPanelElmts.nextButton.html($.i18n('core-buttons/conf-pars-opt'));
|
|
|
|
this._fileSelectionPanelElmts.selectAllButton.text($.i18n('core-buttons/select-all'));
|
|
|
|
this._fileSelectionPanelElmts.unselectAllButton.text($.i18n('core-buttons/unselect-all'));
|
|
|
|
this._fileSelectionPanelElmts.selectRegexButton.text($.i18n('core-buttons/select'));
|
|
|
|
this._fileSelectionPanelElmts.unselectRegexButton.text($.i18n('core-buttons/unselect'));
|
2013-07-02 13:40:50 +02:00
|
|
|
|
2011-08-04 22:37:14 +02:00
|
|
|
this._fileSelectionPanelElmts.startOverButton.click(function() {
|
|
|
|
self._startOver();
|
|
|
|
});
|
|
|
|
|
|
|
|
this._fileSelectionPanelResizer = function() {
|
|
|
|
var elmts = self._fileSelectionPanelElmts;
|
|
|
|
var width = self._fileSelectionPanel.width();
|
|
|
|
var height = self._fileSelectionPanel.height();
|
|
|
|
var headerHeight = elmts.wizardHeader.outerHeight(true);
|
|
|
|
var controlPanelWidth = 350;
|
|
|
|
|
|
|
|
elmts.controlPanel
|
|
|
|
.css("left", "0px")
|
|
|
|
.css("top", headerHeight + "px")
|
|
|
|
.css("width", (controlPanelWidth - DOM.getHPaddings(elmts.controlPanel)) + "px")
|
|
|
|
.css("height", (height - headerHeight - DOM.getVPaddings(elmts.controlPanel)) + "px");
|
|
|
|
|
|
|
|
elmts.filePanel
|
|
|
|
.css("left", controlPanelWidth + "px")
|
|
|
|
.css("top", headerHeight + "px")
|
|
|
|
.css("width", (width - controlPanelWidth - DOM.getHPaddings(elmts.filePanel)) + "px")
|
|
|
|
.css("height", (height - headerHeight - DOM.getVPaddings(elmts.filePanel)) + "px");
|
|
|
|
};
|
|
|
|
|
|
|
|
$(window).resize(this._fileSelectionPanelResizer);
|
|
|
|
this._fileSelectionPanelResizer();
|
2011-08-02 05:34:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
Refine.DefaultImportingController.prototype._renderFileSelectionPanel = function() {
|
2011-08-04 22:37:14 +02:00
|
|
|
this._renderFileSelectionPanelFileTable();
|
|
|
|
this._renderFileSelectionPanelControlPanel();
|
2011-08-02 05:34:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
Refine.DefaultImportingController.prototype._renderFileSelectionPanelFileTable = function() {
|
2011-08-04 22:37:14 +02:00
|
|
|
var self = this;
|
2011-09-30 05:18:15 +02:00
|
|
|
var files = this._job.config.retrievalRecord.files;
|
2011-08-04 22:37:14 +02:00
|
|
|
|
|
|
|
this._fileSelectionPanelElmts.filePanel.empty();
|
|
|
|
|
2018-11-21 18:30:00 +01:00
|
|
|
var fileTable = $('<table><tr><th>'+$.i18n('core-index-import/import')+'</th><th>'+$.i18n('core-index-import/name')+'</th><th>'+$.i18n('core-index-import/mime-type')+'</th><th>'+$.i18n('core-index-import/format')+'</th><th>'+$.i18n('core-index-import/size')+'</th></tr></table>')
|
2011-09-30 05:18:15 +02:00
|
|
|
.appendTo(this._fileSelectionPanelElmts.filePanel)[0];
|
2011-08-04 22:37:14 +02:00
|
|
|
|
2011-09-30 05:18:15 +02:00
|
|
|
var round = function(n) {
|
|
|
|
return Math.round(n * 10) / 10;
|
|
|
|
};
|
|
|
|
var renderSize = function(fileRecord) {
|
|
|
|
var bytes = fileRecord.size;
|
|
|
|
var gigabytes = bytes / 1073741824;
|
|
|
|
var megabytes = bytes / 1048576;
|
|
|
|
var kilobytes = bytes / 1024;
|
|
|
|
if (gigabytes > 1) {
|
|
|
|
return round(gigabytes) + " GB";
|
|
|
|
} else if (megabytes > 1) {
|
|
|
|
return round(megabytes) + " MB";
|
|
|
|
} else if (kilobytes > 1) {
|
|
|
|
return round(kilobytes) + " KB";
|
|
|
|
} else {
|
|
|
|
return fileRecord.size + " bytes";
|
|
|
|
}
|
|
|
|
};
|
2011-08-04 22:37:14 +02:00
|
|
|
var renderFile = function(fileRecord, index) {
|
2011-09-30 05:18:15 +02:00
|
|
|
var id = "import-file-selection-" + Math.round(Math.random() * 1000000);
|
2011-08-04 22:37:14 +02:00
|
|
|
var tr = fileTable.insertRow(fileTable.rows.length);
|
2011-10-08 01:44:11 +02:00
|
|
|
$(tr).addClass((index % 2 === 0) ? 'even' : 'odd');
|
2011-09-30 05:18:15 +02:00
|
|
|
|
|
|
|
var createLabeledCell = function(className) {
|
|
|
|
var td = $('<td>').appendTo(tr);
|
|
|
|
if (className) {
|
|
|
|
td.addClass(className);
|
|
|
|
}
|
|
|
|
return $('<label>').attr('for', id).appendTo(td);
|
|
|
|
};
|
|
|
|
|
2011-08-04 22:37:14 +02:00
|
|
|
var checkbox = $('<input>')
|
2011-09-30 05:18:15 +02:00
|
|
|
.attr("id", id)
|
2011-08-04 22:37:14 +02:00
|
|
|
.attr("type", "checkbox")
|
|
|
|
.attr("index", index)
|
2011-09-30 05:18:15 +02:00
|
|
|
.appendTo(createLabeledCell())
|
2011-08-04 22:37:14 +02:00
|
|
|
.click(function() {
|
2011-09-30 05:18:15 +02:00
|
|
|
var fileRecord = files[index];
|
|
|
|
if (this.checked) {
|
|
|
|
self._selectedMap[fileRecord.location] = fileRecord;
|
|
|
|
} else {
|
|
|
|
delete self._selectedMap[fileRecord.location];
|
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
self._updateFileSelectionSummary();
|
|
|
|
});
|
2018-11-17 21:42:34 +01:00
|
|
|
if (fileRecord.selected) {
|
2011-09-30 05:18:15 +02:00
|
|
|
// Initial selection determined on server side.
|
2011-08-04 22:37:14 +02:00
|
|
|
checkbox.attr("checked", "checked");
|
2011-09-30 05:18:15 +02:00
|
|
|
self._selectedMap[fileRecord.location] = fileRecord;
|
2011-08-02 05:34:47 +02:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
|
2011-09-30 05:18:15 +02:00
|
|
|
createLabeledCell("default-importing-file-selection-filename").text(fileRecord.fileName);
|
|
|
|
createLabeledCell().text(fileRecord.declaredMimeType || fileRecord.mimeType || "unknown");
|
|
|
|
createLabeledCell().text(fileRecord.format || "unknown");
|
|
|
|
createLabeledCell().text(renderSize(fileRecord));
|
2011-08-04 22:37:14 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
for (var i = 0; i < files.length; i++) {
|
|
|
|
renderFile(files[i], i);
|
|
|
|
}
|
2011-08-02 05:34:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
Refine.DefaultImportingController.prototype._renderFileSelectionPanelControlPanel = function() {
|
2011-08-04 22:37:14 +02:00
|
|
|
var self = this;
|
|
|
|
var files = this._job.config.retrievalRecord.files;
|
|
|
|
|
|
|
|
this._fileSelectionPanelElmts.extensionContainer.empty();
|
|
|
|
this._fileSelectionPanelElmts.selectAllButton.unbind().click(function(evt) {
|
|
|
|
for (var i = 0; i < files.length; i++) {
|
2011-09-30 05:18:15 +02:00
|
|
|
var fileRecord = files[i];
|
|
|
|
self._selectedMap[fileRecord.location] = fileRecord;
|
2011-08-04 22:37:14 +02:00
|
|
|
}
|
|
|
|
self._fileSelectionPanelElmts.filePanel.find("input").attr("checked", "checked");
|
|
|
|
self._updateFileSelectionSummary();
|
|
|
|
});
|
|
|
|
this._fileSelectionPanelElmts.unselectAllButton.unbind().click(function(evt) {
|
2011-09-30 05:18:15 +02:00
|
|
|
self._selectedMap = {};
|
2011-08-04 22:37:14 +02:00
|
|
|
self._fileSelectionPanelElmts.filePanel.find("input").removeAttr("checked");
|
|
|
|
self._updateFileSelectionSummary();
|
|
|
|
});
|
|
|
|
|
|
|
|
var table = $('<table></table>')
|
|
|
|
.appendTo(this._fileSelectionPanelElmts.extensionContainer)[0];
|
|
|
|
|
|
|
|
var renderExtension = function(extension) {
|
|
|
|
var tr = table.insertRow(table.rows.length);
|
|
|
|
$('<td>').text(extension.extension).appendTo(tr);
|
|
|
|
$('<td>').text(extension.count + (extension.count > 1 ? " files" : " file")).appendTo(tr);
|
|
|
|
$('<button>')
|
2018-11-21 18:30:00 +01:00
|
|
|
.text($.i18n('core-buttons/select'))
|
2011-08-04 22:37:14 +02:00
|
|
|
.addClass("button")
|
|
|
|
.appendTo($('<td>').appendTo(tr))
|
|
|
|
.click(function() {
|
|
|
|
for (var i = 0; i < files.length; i++) {
|
|
|
|
var file = files[i];
|
2011-09-30 05:18:15 +02:00
|
|
|
if (!(file.location in self._selectedMap)) {
|
2011-08-04 22:37:14 +02:00
|
|
|
if (file.fileName.endsWith(extension.extension)) {
|
2011-09-30 05:18:15 +02:00
|
|
|
self._selectedMap[file.location] = file;
|
2011-08-04 22:37:14 +02:00
|
|
|
self._fileSelectionPanelElmts.filePanel
|
|
|
|
.find("input[index='" + i + "']")
|
|
|
|
.attr("checked", "checked");
|
|
|
|
}
|
2011-08-02 05:34:47 +02:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
}
|
|
|
|
self._updateFileSelectionSummary();
|
2011-08-02 05:34:47 +02:00
|
|
|
});
|
2011-08-04 22:37:14 +02:00
|
|
|
$('<button>')
|
2018-11-21 18:30:00 +01:00
|
|
|
.text($.i18n('core-buttons/unselect'))
|
2011-08-04 22:37:14 +02:00
|
|
|
.addClass("button")
|
|
|
|
.appendTo($('<td>').appendTo(tr))
|
|
|
|
.click(function() {
|
|
|
|
for (var i = 0; i < files.length; i++) {
|
|
|
|
var file = files[i];
|
2011-09-30 05:18:15 +02:00
|
|
|
if (file.location in self._selectedMap) {
|
2011-08-04 22:37:14 +02:00
|
|
|
if (file.fileName.endsWith(extension.extension)) {
|
2011-09-30 05:18:15 +02:00
|
|
|
delete self._selectedMap[file.location];
|
2011-08-04 22:37:14 +02:00
|
|
|
self._fileSelectionPanelElmts.filePanel
|
|
|
|
.find("input[index='" + i + "']")
|
|
|
|
.removeAttr("checked");
|
|
|
|
}
|
2011-08-02 05:34:47 +02:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
}
|
|
|
|
self._updateFileSelectionSummary();
|
2011-08-02 05:34:47 +02:00
|
|
|
});
|
2011-08-04 22:37:14 +02:00
|
|
|
};
|
|
|
|
for (var i = 0; i < this._extensions.length; i++) {
|
|
|
|
renderExtension(this._extensions[i]);
|
|
|
|
}
|
|
|
|
|
|
|
|
this._updateFileSelectionSummary();
|
|
|
|
|
2013-06-23 19:37:29 +02:00
|
|
|
this._fileSelectionPanelElmts.regexInput.unbind().bind("keyup change input",function() {
|
2011-08-04 22:37:14 +02:00
|
|
|
var count = 0;
|
|
|
|
var elmts = self._fileSelectionPanelElmts.filePanel
|
|
|
|
.find(".default-importing-file-selection-filename")
|
|
|
|
.removeClass("highlighted");
|
|
|
|
try {
|
|
|
|
var regex = new RegExp(this.value);
|
|
|
|
elmts.each(function() {
|
|
|
|
if (regex.test($(this).text())) {
|
|
|
|
$(this).addClass("highlighted");
|
|
|
|
count++;
|
2011-08-02 05:34:47 +02:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
});
|
|
|
|
} catch (e) {
|
|
|
|
// Ignore
|
|
|
|
}
|
|
|
|
self._fileSelectionPanelElmts.regexSummary.text(count + (count == 1 ? " match" : " matches"));
|
|
|
|
});
|
|
|
|
this._fileSelectionPanelElmts.selectRegexButton.unbind().click(function() {
|
|
|
|
self._fileSelectionPanelElmts.filePanel
|
|
|
|
.find(".default-importing-file-selection-filename")
|
|
|
|
.removeClass("highlighted");
|
|
|
|
try {
|
|
|
|
var regex = new RegExp(self._fileSelectionPanelElmts.regexInput[0].value);
|
|
|
|
for (var i = 0; i < files.length; i++) {
|
|
|
|
var file = files[i];
|
2011-09-30 05:18:15 +02:00
|
|
|
if (!(file.location in self._selectedMap)) {
|
2011-08-04 22:37:14 +02:00
|
|
|
if (regex.test(file.fileName)) {
|
2011-09-30 05:18:15 +02:00
|
|
|
self._selectedMap[file.location] = file;
|
2011-08-04 22:37:14 +02:00
|
|
|
self._fileSelectionPanelElmts.filePanel
|
|
|
|
.find("input[index='" + i + "']")
|
|
|
|
.attr("checked", "checked");
|
|
|
|
}
|
2011-08-02 05:34:47 +02:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
}
|
|
|
|
self._updateFileSelectionSummary();
|
|
|
|
} catch (e) {
|
|
|
|
// Ignore
|
|
|
|
}
|
|
|
|
});
|
|
|
|
this._fileSelectionPanelElmts.unselectRegexButton.unbind().click(function() {
|
|
|
|
self._fileSelectionPanelElmts.filePanel
|
|
|
|
.find(".default-importing-file-selection-filename")
|
|
|
|
.removeClass("highlighted");
|
|
|
|
try {
|
|
|
|
var regex = new RegExp(self._fileSelectionPanelElmts.regexInput[0].value);
|
|
|
|
for (var i = 0; i < files.length; i++) {
|
|
|
|
var file = files[i];
|
2011-09-30 05:18:15 +02:00
|
|
|
if (file.location in self._selectedMap) {
|
2011-08-04 22:37:14 +02:00
|
|
|
if (regex.test(file.fileName)) {
|
2011-09-30 05:18:15 +02:00
|
|
|
delete self._selectedMap[file.location];
|
2011-08-04 22:37:14 +02:00
|
|
|
self._fileSelectionPanelElmts.filePanel
|
|
|
|
.find("input[index='" + i + "']")
|
|
|
|
.removeAttr("checked");
|
|
|
|
}
|
2011-08-02 05:34:47 +02:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
}
|
|
|
|
self._updateFileSelectionSummary();
|
|
|
|
} catch (e) {
|
|
|
|
// Ignore
|
|
|
|
}
|
|
|
|
});
|
2011-08-02 05:34:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
Refine.DefaultImportingController.prototype._updateFileSelectionSummary = function() {
|
2011-08-04 22:37:14 +02:00
|
|
|
var fileSelection = [];
|
|
|
|
var files = this._job.config.retrievalRecord.files;
|
|
|
|
for (var i = 0; i < files.length; i++) {
|
2011-09-30 05:18:15 +02:00
|
|
|
if (files[i].location in this._selectedMap) {
|
2011-08-04 22:37:14 +02:00
|
|
|
fileSelection.push(i);
|
2011-08-02 05:34:47 +02:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
}
|
|
|
|
this._job.config.fileSelection = fileSelection;
|
|
|
|
this._fileSelectionPanelElmts.summary.text(fileSelection.length + " of " + files.length + " files selected");
|
2011-08-02 05:34:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
Refine.DefaultImportingController.prototype._commitFileSelection = function() {
|
2011-10-08 01:44:11 +02:00
|
|
|
if (this._job.config.fileSelection.length === 0) {
|
2013-07-02 13:40:50 +02:00
|
|
|
alert();
|
2011-08-04 22:37:14 +02:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
var self = this;
|
2018-11-21 18:30:00 +01:00
|
|
|
var dismissBusy = DialogSystem.showBusy($.i18n('core-index-import/inspecting-files'));
|
2011-08-04 22:37:14 +02:00
|
|
|
$.post(
|
2012-10-13 19:47:08 +02:00
|
|
|
"command/core/importing-controller?" + $.param({
|
2011-08-04 22:37:14 +02:00
|
|
|
"controller": "core/default-importing-controller",
|
|
|
|
"jobID": this._jobID,
|
|
|
|
"subCommand": "update-file-selection"
|
|
|
|
}),
|
|
|
|
{
|
|
|
|
"fileSelection" : JSON.stringify(this._job.config.fileSelection)
|
|
|
|
},
|
|
|
|
function(data) {
|
|
|
|
dismissBusy();
|
|
|
|
|
2011-09-16 02:19:14 +02:00
|
|
|
if (!(data)) {
|
2018-11-21 18:30:00 +01:00
|
|
|
self._createProjectUI.showImportJobError($.i18n('core-index-import/unknown-err'));
|
2011-09-16 02:19:14 +02:00
|
|
|
} else if (data.code == "error" || !("job" in data)) {
|
2018-11-21 18:30:00 +01:00
|
|
|
self._createProjectUI.showImportJobError((data.message) ? ($.i18n('core-index-import/error')+ ' ' + data.message) : $.i18n('core-index-import/unknown-err'));
|
2011-09-16 02:19:14 +02:00
|
|
|
} else {
|
|
|
|
// Different files might be selected. We start over again.
|
|
|
|
delete this._parserOptions;
|
2011-08-04 22:37:14 +02:00
|
|
|
|
2011-09-16 02:19:14 +02:00
|
|
|
self._job = data.job;
|
|
|
|
self._showParsingPanel(true);
|
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
},
|
|
|
|
"json"
|
|
|
|
);
|
2011-08-02 05:34:47 +02:00
|
|
|
};
|