include textarea when call the api
This commit is contained in:
parent
f03109844a
commit
ccb9123ac0
1 changed files with 6 additions and 0 deletions
|
@ -26,6 +26,12 @@
|
||||||
args[key] = value;
|
args[key] = value;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('textarea').each(function() {
|
||||||
|
var key = $(this).attr('name');
|
||||||
|
var value = $(this).val();
|
||||||
|
args[key] = value;
|
||||||
|
});
|
||||||
|
|
||||||
api.configurePlugin(args).then(function(response) {
|
api.configurePlugin(args).then(function(response) {
|
||||||
if (response.status == 0) {
|
if (response.status == 0) {
|
||||||
logs('Plugin configured: ' + response.data.key);
|
logs('Plugin configured: ' + response.data.key);
|
||||||
|
|
Loading…
Reference in a new issue