[pgAdmin][RM4850] Don't open Datetime Picker when clicked on field's label

Nagesh Dhope <[email protected]>
Newsgroups gmane.comp.db.postgresql.pgadmin.devel
Message-ID <CAA3zdZpw_8JFshJquzv2SwnhReuCfChjjeiv_CPdrME2Xxuhow@mail.gmail.com>
Hi Hackers,
Please find the attached patch for #4850

-- 
Thanks,
Nagesh
RM4850.patch (application/octet-stream, 545 B)
diff --git a/web/pgadmin/static/js/backform.pgadmin.js b/web/pgadmin/static/js/backform.pgadmin.js
index 4568f0f..407b9a9 100644
--- a/web/pgadmin/static/js/backform.pgadmin.js
+++ b/web/pgadmin/static/js/backform.pgadmin.js
@@ -2690,7 +2690,7 @@ define([
         'focus input': 'clearInvalid',
         'focusout input': 'closePicker',
         'change.datetimepicker': 'onChange',
-        'click': 'togglePicker',
+        'click .input-group': 'togglePicker',
       },
       togglePicker: function() {
         if (this.has_datepicker) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.