Skip to content

Commit

Permalink
[hooks] fix UI render bug
Browse files Browse the repository at this point in the history
  • Loading branch information
waiterZen committed Nov 29, 2021
1 parent 434dc75 commit 57198ad
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@
},
"HTTPEffect": {
name: jQuery.i18n.map["hooks.HTTPEffect"],
init: function() {
init: function(dom) {
var methods = [
{value: "get", name: jQuery.i18n.map["hooks.http-method-get"]},
{value: "post", name: jQuery.i18n.map["hooks.http-method-post"]},
];
$(".http-effect-method-dropdown").clySelectSetItems(methods);
$(".http-effect-method-dropdown").clySelectSetSelection(methods[0].value, methods[0].name);
$(dom).find(".http-effect-method-dropdown").clySelectSetItems(methods);
$(dom).find(".http-effect-method-dropdown").clySelectSetSelection(methods[0].value, methods[0].name);
},
getValidConfig: function(dom) {
var url = $(dom).find("#http-effect-url").val();
Expand Down

0 comments on commit 57198ad

Please sign in to comment.