1
0
Fork 0

web ui database view tiles event fix

This commit is contained in:
hkernbach 2015-12-22 12:21:26 +01:00
parent dcb8c4f174
commit 3946ba265d
2 changed files with 9 additions and 4 deletions

View File

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

View File

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