Add button to refresh tables to sidebar header

This commit is contained in:
Dan Sosedoff 2015-01-03 20:20:18 -06:00
parent 9b0b71363f
commit 1123f24fb8
4 changed files with 575 additions and 545 deletions

1095
bindata.go

File diff suppressed because it is too large Load Diff

View File

@ -103,6 +103,22 @@
overflow: auto; overflow: auto;
} }
#sidebar div.tables-list .title:hover span.refresh {
display: inline-block;
}
#sidebar div.tables-list .title span.refresh {
float: right;
margin-right: 4px;
cursor: pointer;
color: #95a7b7;
display: none;
}
#sidebar div.tables-list .title span.refresh:hover {
color: #fff;
}
#sidebar div.tables-list #tables { #sidebar div.tables-list #tables {
padding: 33px 0 0; padding: 33px 0 0;
font-size: 13px; font-size: 13px;

View File

@ -31,7 +31,10 @@
<div id="sidebar"> <div id="sidebar">
<div class="tables-list"> <div class="tables-list">
<div class="wrap"> <div class="wrap">
<div class="title">Database Tables</div> <div class="title">
Database Tables
<span class="refresh" id="refresh_tables"><i class="fa fa-refresh"></i></span>
</div>
<ul id="tables"></ul> <ul id="tables"></ul>
</div> </div>
</div> </div>

View File

@ -448,6 +448,10 @@ $(document).ready(function() {
showTableInfo(); showTableInfo();
}); });
$("#refresh_tables").on("click", function() {
loadTables();
});
$("#edit_connection").on("click", function() { $("#edit_connection").on("click", function() {
if (connected) { if (connected) {
$("#close_connection_window").show(); $("#close_connection_window").show();