This commit is contained in:
Dennis Eichhorn 2023-08-28 22:06:37 +00:00
parent 07a2ab5a48
commit b44c35188a
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,5 @@
import { UriFactory } from '../../../Uri/UriFactory.js';
/**
* Set value of input.
*
@ -18,7 +20,7 @@ export function domSetValue (action, callback, id)
let start = 0;
let end = 0;
while ((start = dataPath.indexOf('{', start)) !== -1) {
while (dataPath.indexOf('http') !== 0 && (start = dataPath.indexOf('{', start)) !== -1) {
end = dataPath.indexOf('}', start);
start++;
@ -52,6 +54,8 @@ export function domSetValue (action, callback, id)
fill[i].innerHTML += dataPath;
}
}
} else if (fill[i].tagName.toLowerCase() === 'iframe') {
fill[i].src = UriFactory.build(dataPath);
} else {
if (fill[i].value !== dataPath
&& !fill[i].value.includes(', ' + dataPath + ',')

View File

@ -169,7 +169,7 @@ export class ActionManager
}
self.runAction(this.id, listener, listener.action[0], event);
});
}, false);
};
/**