« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite/wiki-data
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/composite/wiki-data')
-rw-r--r--src/data/composite/wiki-data/inputSoupyFind.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/data/composite/wiki-data/inputSoupyFind.js b/src/data/composite/wiki-data/inputSoupyFind.js
index 4ae7bd3b..020f4990 100644
--- a/src/data/composite/wiki-data/inputSoupyFind.js
+++ b/src/data/composite/wiki-data/inputSoupyFind.js
@@ -1,8 +1,8 @@
 import {input} from '#composite';
 import {anyOf, isFunction, isString} from '#validators';
 
-export default () =>
-  input({
+function inputSoupyFind() {
+  return input({
     validate:
       anyOf(
         isFunction,
@@ -16,6 +16,12 @@ export default () =>
           return true;
         }),
   });
+}
+
+inputSoupyFind.input = key =>
+  input.value('_soupyFind:' + key);
+
+export default inputSoupyFind;
 
 export function getSoupyFindInputKey(value) {
   return value.slice('_soupyFind:'.length);