From: Damyan Ivanov Date: Mon, 7 Mar 2022 21:47:10 +0000 (+0000) Subject: clicking item description toggles the check box X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=c280592b752f3b0c426b6a8d1e362741437ce010;p=lsl.git clicking item description toggles the check box --- diff --git a/public/css/style.css b/public/css/style.css index e9e3cb7..4634b15 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -176,7 +176,7 @@ font-size: 10px; .list-item-row input[type="checkbox"] { width: 1.2em; } -.list-item-row .description { cursor: text; min-width: 2em; } +.list-item-row .description { cursor: default; min-width: 2em; } .list-item-row .edit-trigger { cursor: pointer; visibility: hidden; diff --git a/public/javascripts/lsl.js b/public/javascripts/lsl.js index ca3cc7a..25fd187 100644 --- a/public/javascripts/lsl.js +++ b/public/javascripts/lsl.js @@ -493,6 +493,9 @@ $(function(){ return true; }); $('#list-items').on('change', '.list-item-row input[type="checkbox"]', handle_list_item_state_changed); + $('#list-items').on('click', '.list-item-row > .description', (ev)=>{ + $(ev.target).prev('input').trigger('click'); + }); load_lists(); $('body').on('click', '.ui-widget-overlay', (ev) => { $(ev.target).siblings('.ui-dialog').find('.ui-dialog-content').dialog('close');