Skip to content

Commit

Permalink
Merge staging (v1.4.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
zowe-robot authored Jul 18, 2019
2 parents d1bc4b0 + f0274ab commit 537d9d7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
13 changes: 13 additions & 0 deletions sample-iframe-app.ppf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This program and the accompanying materials are made available under the terms of the
Eclipse Public License v2.0 which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
Copyright Contributors to the Zowe Project.
-->
<Project default_configuration_name="Configuration 1" fallback_default_config_name="Configuration 1" file_encoding="ISO-8859-1" ltd_name="javascript" name="sample-iframe-app" version="9.0.3.11">
<Configuration name="Configuration 1"/>
<Source exclude="false" path="." web="false"/>
<ProjectScanSettings/>
</Project>
6 changes: 3 additions & 3 deletions web/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@
<span class="bigger-bold-text">Dataservice Request Test</span>
</div>
<div>
<input placeholder="Message" name="helloText" id="helloText"/>
<button onclick="sayHello()">Run</button>
<input placeholder="Message" name="helloText" id="helloText" oninput="inputChanged()"/>
<button id="runButton" onclick="sayHello()" disabled>Run</button>
</div>
<div>
<label>Response</label>
<textarea class="server-response" placeholder="Response" name="serverResponseMessage" id="serverResponseMessage"></textarea>
<textarea readonly class="server-response" placeholder="Response" name="serverResponseMessage" id="serverResponseMessage"></textarea>
</div>
</div>
</body>
Expand Down
9 changes: 8 additions & 1 deletion web/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@ function saveToServer() {
}
};

function inputChanged() {
if(document.getElementById('helloText').value) {
document.getElementById('runButton').disabled = false;
} else {
document.getElementById('runButton').disabled = true;
}
}

function sayHello() {
if (ZoweZLUX) {
console.log('IFrame is within MVD');
Expand Down Expand Up @@ -240,7 +248,6 @@ function sayHello() {
}
}


// Tests the sending of requests to other plugins. Invoked
// by the button labelled "Send App Request"

Expand Down

0 comments on commit 537d9d7

Please sign in to comment.