Skip to content

Commit

Permalink
Merge pull request #2 from jthomas/master
Browse files Browse the repository at this point in the history
Incorrect element selector in UI HTML
  • Loading branch information
jthomas authored Oct 25, 2016
2 parents 2f64c03 + 8901950 commit d1e5dc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions openwhisk/openwhisk.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
var checked = $("#node-input-edit").prop("checked");
if (checked) {
var params = [];
$(".red-ui-editableList li").each(function (idx, li) {
$(".node-input-parameters-container-row li").each(function (idx, li) {
var key = $(li).find(".params-key").val();
var value = $(li).find(".params-value").val();
params.push({key: key, value: value});
Expand All @@ -215,11 +215,11 @@
});

function makeParametersReadOnly(readOnly) {
$(".red-ui-editableList input").prop('disabled', readOnly);
$(".node-input-parameters-container-row input").prop('disabled', readOnly);
if (readOnly) {
$(".red-ui-editableList .editor-button").hide();
$(".node-input-parameters-container-row .editor-button").hide();
} else {
$(".red-ui-editableList .editor-button").show();
$(".node-input-parameters-container-row .editor-button").show();
}
}

Expand Down Expand Up @@ -397,7 +397,7 @@
if (checked) {
$("#node-input-func").val(this.editor.getValue());
var params = []
$(".red-ui-editableList li").each(function (idx, li) {
$(".node-input-parameters-container-row li").each(function (idx, li) {
var key = $(li).find(".params-key").val();
var value = $(li).find(".params-value").val();
params.push({key: key, value: value});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-node-openwhisk",
"version": "0.3.0",
"version": "0.3.1",
"description": "A set of nodes for interacting with IBM Bluemix OpenWhisk",
"license": "Apache-2.0",
"repository": {
Expand Down

0 comments on commit d1e5dc5

Please sign in to comment.