Made sure busy indicator shows up for GData importing when needed.
Fixed radio button issue with GData worksheet selection. Fixed resizing issue with open project action area. Fixed NullPointerException in RecordModel. git-svn-id: http://google-refine.googlecode.com/svn/trunk@2198 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
31eaea385d
commit
e955ed05ae
@ -45,7 +45,7 @@ Refine.GDataImportingController = function(createProjectUI) {
|
||||
Refine.CreateProjectUI.controllers.push(Refine.GDataImportingController);
|
||||
|
||||
Refine.GDataImportingController.prototype.startImportingDocument = function(doc) {
|
||||
var dismiss = DialogSystem.showBusy("Preparing importing job ...");
|
||||
var dismiss = DialogSystem.showBusy("Preparing ...");
|
||||
|
||||
var self = this;
|
||||
$.post(
|
||||
@ -188,6 +188,7 @@ Refine.GDataImportingController.prototype._showParsingPanel = function() {
|
||||
var td0 = $(tr.insertCell(0)).attr('width', '1%');
|
||||
var checkbox = $('<input>')
|
||||
.attr('type', 'radio')
|
||||
.attr('name', 'gdata-importing-parsing-worksheet')
|
||||
.attr('sheetUrl', this.link)
|
||||
.appendTo(td0);
|
||||
if (i === 0) {
|
||||
|
@ -95,7 +95,10 @@ public class RecordModel implements Jsonizable {
|
||||
throws JSONException {
|
||||
|
||||
writer.object();
|
||||
writer.key("hasRecords"); writer.value(_records.size() < _rowDependencies.size());
|
||||
writer.key("hasRecords");
|
||||
writer.value(
|
||||
_records != null && _rowDependencies != null &&
|
||||
_records.size() < _rowDependencies.size());
|
||||
writer.endObject();
|
||||
}
|
||||
|
||||
|
@ -322,6 +322,8 @@ function init() {
|
||||
"styles/jquery-ui-overrides.less",
|
||||
"styles/common.less",
|
||||
"styles/pure.css",
|
||||
"styles/util/dialog.less",
|
||||
|
||||
"styles/index.less",
|
||||
"styles/index/create-project-ui.less",
|
||||
"styles/index/open-project-ui.less",
|
||||
|
@ -39,13 +39,13 @@ var Refine = {
|
||||
|
||||
Refine.selectActionArea = function(id) {
|
||||
$('.action-area-tab').removeClass('selected');
|
||||
$('.action-area-tab-body').css('visibility', 'hidden').css('z-index', '100');
|
||||
$('.action-area-tab-body').css('visibility', 'hidden').css('z-index', '50');
|
||||
|
||||
for (var i = 0; i < Refine.actionAreas.length; i++) {
|
||||
var actionArea = Refine.actionAreas[i];
|
||||
if (id == actionArea.id) {
|
||||
actionArea.tabElmt.addClass('selected');
|
||||
actionArea.bodyElmt.css('visibility', 'visible').css('z-index', '110');;
|
||||
actionArea.bodyElmt.css('visibility', 'visible').css('z-index', '55');;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -93,6 +93,7 @@ Refine.OpenProjectUI.prototype._fetchProjects = function() {
|
||||
null,
|
||||
function(data) {
|
||||
self._renderProjects(data);
|
||||
self.resize();
|
||||
},
|
||||
"json"
|
||||
);
|
||||
|
@ -88,5 +88,5 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.dialog-busy {
|
||||
width: 400px;
|
||||
border: none;
|
||||
.rounded_corners();
|
||||
.rounded_corners(20px);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user