mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-15 03:36:33 +03:00
Add button to refresh tables to sidebar header
This commit is contained in:
parent
9b0b71363f
commit
1123f24fb8
1095
bindata.go
1095
bindata.go
File diff suppressed because it is too large
Load Diff
@ -103,6 +103,22 @@
|
||||
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 {
|
||||
padding: 33px 0 0;
|
||||
font-size: 13px;
|
||||
|
@ -31,7 +31,10 @@
|
||||
<div id="sidebar">
|
||||
<div class="tables-list">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -448,6 +448,10 @@ $(document).ready(function() {
|
||||
showTableInfo();
|
||||
});
|
||||
|
||||
$("#refresh_tables").on("click", function() {
|
||||
loadTables();
|
||||
});
|
||||
|
||||
$("#edit_connection").on("click", function() {
|
||||
if (connected) {
|
||||
$("#close_connection_window").show();
|
||||
|
Loading…
Reference in New Issue
Block a user