[pgAdmin][RM4582] pgAgent - In create job step changing "kind" (SQL/Batch) throws console error

Aditya Toshniwal <[email protected]>
Newsgroups gmane.comp.db.postgresql.pgadmin.devel
Message-ID <CAM9w-_=9KFWsz1tAkZqrm3T-KDCnnzT_Wc7Fb0Wpm+2HixpbJw@mail.gmail.com>
Hi Hackers,

Attached is the patch to fix console error in create step under pgAgent.
Code is changed to use bootstrapToggle instead of bootstrapSwitch.

-- 
Thanks and Regards,
Aditya Toshniwal
Software Engineer | EnterpriseDB India | Pune
"Don't Complain about Heat, Plant a TREE"
RM4582.patch (application/octet-stream, 972 B)
diff --git a/web/pgadmin/browser/server_groups/servers/pgagent/steps/static/js/pga_jobstep.js b/web/pgadmin/browser/server_groups/servers/pgagent/steps/static/js/pga_jobstep.js
index fb0624af..7c7c62ac 100644
--- a/web/pgadmin/browser/server_groups/servers/pgagent/steps/static/js/pga_jobstep.js
+++ b/web/pgadmin/browser/server_groups/servers/pgagent/steps/static/js/pga_jobstep.js
@@ -45,10 +45,10 @@ define('pgadmin.node.pga_jobstep', [
       is_editable = _.isFunction(editable) ? !!editable.apply(column, [model]) : !!editable;
       if (is_editable) {
         this.$el.addClass('editable');
-        input.bootstrapSwitch('disabled', false);
+        input.bootstrapToggle('disabled', false);
       } else {
         this.$el.removeClass('editable');
-        input.bootstrapSwitch('disabled', true);
+        input.bootstrapToggle('disabled', true);
         // Set self value into model
         setTimeout(function () {
           model.set(self_name, true);
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.