From a0cf018edf06b62985fd9664b4ed8dc397a4e6e8 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Mon, 16 Sep 2024 14:13:54 -0500 Subject: [PATCH] minor bug fixes --- cms/static/js/dialog.js | 4 ++++ cms/static/js/jx/rpc.js | 3 +++ 2 files changed, 7 insertions(+) diff --git a/cms/static/js/dialog.js b/cms/static/js/dialog.js index c4e9ad9..c7a5055 100644 --- a/cms/static/js/dialog.js +++ b/cms/static/js/dialog.js @@ -13,6 +13,7 @@ dialog.show = function(_args,_pointer){ jx.dom.set.value('dialog-message',_args.message) } + // // In order to perhaps execute any js script that should have been executed on load ... // @@ -27,6 +28,9 @@ dialog.show = function(_args,_pointer){ // } }) + if (_pointer !=null){ + _pointer() + } }) } diff --git a/cms/static/js/jx/rpc.js b/cms/static/js/jx/rpc.js index ebfd127..9f29183 100755 --- a/cms/static/js/jx/rpc.js +++ b/cms/static/js/jx/rpc.js @@ -119,6 +119,9 @@ jx.ajax.get.instance = function(){ } + this.delete = function (url,callback){ + this.send(url,callback,'DELETE') + } this.put = function(url,callback){ this.send(url,callback,'PUT') ; }