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:
David Huynh 2011-08-12 19:15:58 +00:00
parent 31eaea385d
commit e955ed05ae
6 changed files with 12 additions and 5 deletions

View File

@ -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) {

View File

@ -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();
}

View File

@ -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",

View File

@ -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');;
}
}
};

View File

@ -93,6 +93,7 @@ Refine.OpenProjectUI.prototype._fetchProjects = function() {
null,
function(data) {
self._renderProjects(data);
self.resize();
},
"json"
);

View File

@ -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);
}