This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 1deb4eb351000b17e319fc7b1cdad2400dd56545 Author: Daniel Gruno <[email protected]> AuthorDate: Sat Nov 13 17:43:23 2021 +0100 regen JS --- webui/js/ponymail.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js index bd0e049..b04b1f7 100644 --- a/webui/js/ponymail.js +++ b/webui/js/ponymail.js @@ -278,11 +278,11 @@ Array.prototype.has = function(val) { return false; }; -Object.prototype.isEmpty = function() { +function isEmpty(obj) { return ( - this - && Object.keys(this).length === 0 - && Object.getPrototypeOf(this) === Object.prototype + obj + && Object.keys(obj).length === 0 + && Object.getPrototypeOf(obj) === Object.prototype ) } @@ -2172,7 +2172,7 @@ let current_index_pos = 0; let current_per_page = 0; function listview_header(state, json) { - if (json.isEmpty()) { // Bad search request? + if (isEmpty(json)) { // Bad search request? modal("Bad search request", "Your request could not be parsed.", "warning"); return; }
