From ebf997951feb8bb1ce34e5cb33f0613538d7f9ca Mon Sep 17 00:00:00 2001 From: Massimo Melina Date: Sat, 30 May 2020 15:46:47 +0200 Subject: [PATCH] better code --- default.tpl | 11 +- hfs.drc | 172 ++++++++------- hfs.events | 3 - hfs.lng | 623 ---------------------------------------------------- main.dfm | 6 - todo.txt | 2 + utillib.pas | 5 +- 7 files changed, 97 insertions(+), 725 deletions(-) delete mode 100644 hfs.events delete mode 100644 hfs.lng diff --git a/default.tpl b/default.tpl index ae6cda3..ba38cd8 100644 --- a/default.tpl +++ b/default.tpl @@ -703,9 +703,8 @@ function dialog(content, options) { ).click(function(ev){ ev.stopImmediatePropagation() }) - setTimeout(function(){ - ret.find(':input:not(:disabled):first').focus() - }) + setTimeout(()=> + ret.find(':input:not(:disabled):first').focus() ) return ret } // dialog @@ -983,8 +982,8 @@ function newQ(){ function changeSort(){ dialog([ $('

').text('{.!Sort by.}'), - $('
').html(objToArr(sortOptions, function(label,code){ - return $('