Skip to content

Commit

Permalink
fix to show waiting pointer before database list loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
tagomoris committed Dec 17, 2012
1 parent cdde06f commit e50c5f3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions public/js/shib.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,17 @@ $(function(){
);

if ($('select#table_dbname').size() > 0) {
$('#tables_diag,#describe_diag').css('text-decoration', 'line-through');
$('#tables_diag,#describe_diag')
.css('text-decoration', 'line-through')
.css('cursor', 'wait');
load_database_list(function(){
$('#tables_diag').click(function(event){show_tables_dialog();});
$('#table_dbname').change(function(event){show_tables_dialog();});
$('#describe_diag').click(function(event){show_describe_dialog();});
$('#desc_dbname').change(function(event){show_describe_dialog();});
$('#tables_diag,#describe_diag').css('text-decoration', '');
$('#tables_diag,#describe_diag')
.css('text-decoration', '')
.css('cursor', 'pointer');
});
} else {
$('#tables_diag').click(function(event){show_tables_dialog();});
Expand Down

0 comments on commit e50c5f3

Please sign in to comment.