Przeglądaj źródła

Merge pull request #14156 from shariquerik/file-view-checkbox-fix

version-14
Suraj Shetty 3 lat temu
committed by GitHub
rodzic
commit
3b04d28bf5
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 7 dodań i 4 usunięć
  1. +1
    -0
      frappe/public/js/frappe/list/list_view.js
  2. +4
    -2
      frappe/public/js/frappe/views/file/file_view.js
  3. +2
    -2
      frappe/public/scss/desk/list.scss

+ 1
- 0
frappe/public/js/frappe/list/list_view.js Wyświetl plik

@@ -1163,6 +1163,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
if ( if (
$target.hasClass("filterable") || $target.hasClass("filterable") ||
$target.hasClass("select-like") || $target.hasClass("select-like") ||
$target.hasClass("file-select") ||
$target.hasClass("list-row-like") || $target.hasClass("list-row-like") ||
$target.is(":checkbox") $target.is(":checkbox")
) { ) {


+ 4
- 2
frappe/public/js/frappe/views/file/file_view.js Wyświetl plik

@@ -380,8 +380,10 @@ frappe.views.FileView = class FileView extends frappe.views.ListView {


return ` return `
<div class="list-row-col ellipsis list-subject level"> <div class="list-row-col ellipsis list-subject level">
<input class="level-item list-row-checkbox hidden-xs"
type="checkbox" data-name="${file.name}">
<span class="level-item file-select">
<input class="list-row-checkbox hidden-xs"
type="checkbox" data-name="${file.name}">
</span>
<span class="level-item ellipsis" title="${file.file_name}"> <span class="level-item ellipsis" title="${file.file_name}">
<a class="ellipsis" href="${route_url}" title="${file.file_name}"> <a class="ellipsis" href="${route_url}" title="${file.file_name}">
${file.subject_html} ${file.subject_html}


+ 2
- 2
frappe/public/scss/desk/list.scss Wyświetl plik

@@ -140,7 +140,7 @@
} }
} }


.select-like {
.select-like, .file-select {
padding: 15px 0px 15px 15px; padding: 15px 0px 15px 15px;
} }
} }
@@ -178,7 +178,7 @@ $level-margin-right: 8px;
color: var(--text-color); color: var(--text-color);
} }


.level-item {
.level-item:not(.file-select) {
margin-right: $level-margin-right; margin-right: $level-margin-right;
} }




Ładowanie…
Anuluj
Zapisz