mirror of https://gitee.com/bigwinds/arangodb
web ui database view tiles event fix
This commit is contained in:
parent
dcb8c4f174
commit
3946ba265d
|
@ -28,7 +28,7 @@
|
|||
"click #databaseToggle" : "toggleSettingsDropdown",
|
||||
"click .css-label" : "checkBoxes",
|
||||
"click #dbSortDesc" : "sorting",
|
||||
"click svg" : "switchDatabase"
|
||||
"click .tile" : "switchDatabase"
|
||||
},
|
||||
|
||||
sorting: function() {
|
||||
|
@ -135,9 +135,11 @@
|
|||
},
|
||||
|
||||
switchDatabase: function(e) {
|
||||
var changeTo = $(e.currentTarget).parent().find("h5").text();
|
||||
var url = this.collection.createDatabaseURL(changeTo);
|
||||
window.location.replace(url);
|
||||
if (!$(e.target).parent().hasClass('iconSet')) {
|
||||
var changeTo = $(e.currentTarget).find("h5").text();
|
||||
var url = this.collection.createDatabaseURL(changeTo);
|
||||
window.location.replace(url);
|
||||
}
|
||||
},
|
||||
|
||||
submitCreateDatabase: function() {
|
||||
|
|
|
@ -37,6 +37,8 @@ $iconsize: 50px;
|
|||
position: relative;
|
||||
text-align: center;
|
||||
|
||||
z-index: 1;
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
@ -198,6 +200,7 @@ $iconsize: 50px;
|
|||
padding-left: 3px;
|
||||
padding-right: 3px;
|
||||
padding-top: 2px;
|
||||
z-index: 2;
|
||||
|
||||
&:hover {
|
||||
background-color: $c-positive;
|
||||
|
|
Loading…
Reference in New Issue