node-red-contrib-mobius-flow-base 2.5.86-beta.64 → 2.5.86-beta.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,10 +57,10 @@ function getMobsearch(mobiusSrvc, useRid, listed, opts) {
57
57
  <input type="text" id="instance-search-ins" style="width:10%;" placeholder="INS">
58
58
  `;
59
59
 
60
+ // Get current state of input field
61
+ let uriFieldValue = '';
60
62
  if (!listed) {
61
- console.log('lalalal');
62
- console.log($(`#${opts.uriFieldName}`).val());
63
- $(`#${opts.uriFieldName}`).val($(`#${opts.uriFieldName}`).val());
63
+ uriFieldValue = $(`#${opts.uriFieldName}`).val();
64
64
  }
65
65
 
66
66
  //set level dependent html
@@ -259,7 +259,7 @@ function getMobsearch(mobiusSrvc, useRid, listed, opts) {
259
259
  if (/((^([0-9A-F]){6}$)|^$)/.test(searchObject.hid)) {
260
260
  $.getJSON(`mgetservices?mobius=${mobiusSrvc}&hid=${searchObject.hid}`, serviceSearch).fail(
261
261
  (err) => {
262
- console.log('Some kind of html failure message on service discovery');
262
+ console.log('Mobsearch failed to contact Mobius');
263
263
  }
264
264
  );
265
265
  }
@@ -474,4 +474,9 @@ function getMobsearch(mobiusSrvc, useRid, listed, opts) {
474
474
  acceptCheck();
475
475
  });
476
476
  }
477
+
478
+ // reset input filed after init
479
+ if (!listed) {
480
+ $(`#${opts.uriFieldName}`).val(uriFieldValue);
481
+ }
477
482
  }
@@ -98,14 +98,13 @@ POSSIBILITY OF SUCH DAMAGE.
98
98
  oneditprepare: function () {
99
99
  var node = this;
100
100
  let mobiusSrvc = $("#node-input-connection").val();
101
+
101
102
  opts = {
102
103
  htmlElementId: 'mobsearch',
103
104
  uriFieldName: 'node-input-resource'
104
105
  };
105
106
  initMobsearch.toRid(mobiusSrvc, opts);
106
107
 
107
- console.log('Foo Bar');
108
- console.log($("#node-input-resource").val());
109
108
  },
110
109
  oneditsave: function() {
111
110
  if($("#node-input-detailedOutput").prop('checked')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-mobius-flow-base",
3
- "version": "2.5.86-beta.64",
3
+ "version": "2.5.86-beta.68",
4
4
  "description": "Node-RED base nodes for Mobius Flow",
5
5
  "main": "index.js",
6
6
  "types": "dist/index.d.ts",