From 4f3f6edf680b8a5867571b3cdc362e8ac051f9c6 Mon Sep 17 00:00:00 2001 From: prssanna Date: Fri, 29 Jan 2021 13:35:36 +0530 Subject: [PATCH] style: indent issues --- frappe/public/js/frappe/ui/toolbar/search.js | 4 ++-- .../public/js/frappe/views/file/file_view.js | 24 +++++++++---------- .../js/frappe/views/image/image_view.js | 16 ++++--------- 3 files changed, 18 insertions(+), 26 deletions(-) diff --git a/frappe/public/js/frappe/ui/toolbar/search.js b/frappe/public/js/frappe/ui/toolbar/search.js index 7690016808..1a7fec9d90 100644 --- a/frappe/public/js/frappe/ui/toolbar/search.js +++ b/frappe/public/js/frappe/ui/toolbar/search.js @@ -379,8 +379,8 @@ frappe.search.SearchDialog = class { let title_html = !result.description ? link_html : `${link_html}
${ - result.description - }
`; + result.description + } `; let result_text = `
${title_html} diff --git a/frappe/public/js/frappe/views/file/file_view.js b/frappe/public/js/frappe/views/file/file_view.js index e849b2c6b6..6f0cdcc0f1 100644 --- a/frappe/public/js/frappe/views/file/file_view.js +++ b/frappe/public/js/frappe/views/file/file_view.js @@ -267,18 +267,17 @@ frappe.views.FileView = class FileView extends frappe.views.ListView { let file_body_html = d._type == "image" ? `
${d.file_name}
` + d.file_url + }" alt="${d.file_name}">
` : frappe.utils.icon(icon_class, { - width: "40px", - height: "45px" - }); + width: "40px", + height: "45px" + }); const name = escape(d.name); const draggable = d.type == "Folder" ? false : true; return ` - +
@@ -328,8 +327,8 @@ frappe.views.FileView = class FileView extends frappe.views.ListView { let header_selector_html = !frappe.views.FileView.grid_view ? `` + "Select All" + )}">` : ""; let header_columns_html = !frappe.views.FileView.grid_view @@ -381,9 +380,8 @@ frappe.views.FileView = class FileView extends frappe.views.ListView { return `
- + ${file.subject_html} diff --git a/frappe/public/js/frappe/views/image/image_view.js b/frappe/public/js/frappe/views/image/image_view.js index 51ea11b024..742bcd969f 100644 --- a/frappe/public/js/frappe/views/image/image_view.js +++ b/frappe/public/js/frappe/views/image/image_view.js @@ -91,9 +91,7 @@ frappe.views.ImageView = class ImageView extends frappe.views.ListView { const escaped_title = frappe.utils.escape_html(title); const _class = !item._image_url ? "no-image" : ""; const _html = item._image_url - ? `${title}` + ? `${title}` : ` ${frappe.get_abbr(title)} `; @@ -110,9 +108,8 @@ frappe.views.ImageView = class ImageView extends frappe.views.ListView {