1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update selection buttons

This commit is contained in:
Luke Pulverenti 2015-07-14 12:39:34 -04:00
parent 59a3cada00
commit 1c27cdeb2c
35 changed files with 226 additions and 115 deletions

View file

@ -124,7 +124,7 @@
buttonCount++;
}
html += '<paper-icon-button icon="more-vert" class="btnMoreCommands"></paper-icon-button>';
html += '<paper-icon-button icon="' + AppInfo.moreIcon + '" class="btnMoreCommands"></paper-icon-button>';
buttonCount++;
html += '</div>';
@ -508,7 +508,7 @@
while (target != null) {
var tagName = target.tagName || '';
if (tagName == 'A' || tagName.indexOf('BUTTON') != -1) {
if (tagName == 'A' || tagName.indexOf('BUTTON') != -1 || tagName.indexOf('INPUT') != -1) {
return true;
}
@ -780,9 +780,13 @@
function onCardClick(e) {
if (isClickable(targetElem)) {
return;
}
var targetElem = e.target;
if (targetElem.classList.contains('itemSelectionPanel') || this.querySelector('.itemSelectionPanel')) {
return false;
return;
}
var info = LibraryBrowser.getListItemInfo(this);
@ -807,10 +811,6 @@
return;
}
if (isClickable(targetElem)) {
return;
}
var target = $(targetElem);
if (target.parents('a').length || target.parents('button').length) {
return;