MCPcopy Create free account
hub / github.com/bugy/script-server / getButton

Function getButton

web-src/tests/unit/admin/ParameterList_test.js:74–81  ·  view source on GitHub ↗
(item, buttonName)

Source from the content-addressed store, hash-verified

72 }
73
74 function getButton(item, buttonName) {
75 let icon = $(item.$el)
76 .find('a i')
77 .filter((index, elem) => elem.innerHTML.trim() === buttonName)
78 .get(0)
79
80 return icon.parentNode;
81 }
82
83 async function clickParamAction(paramName, action) {
84 const item = findParamItem(paramName);

Callers 1

clickParamActionFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected