diff options
author | 2014-06-01 20:23:56 +0200 | |
---|---|---|
committer | 2014-06-01 20:23:56 +0200 | |
commit | fd5d654d1833be335c21c20724032c4438d7d8bc (patch) | |
tree | 008319d70ef9df3147a8a216aea29923a7feb805 /pyload/web/app/scripts/views/input/inputLoader.js | |
parent | Merge branch 'fix-uploadedto' (diff) | |
parent | added missing argument (diff) | |
download | pyload-fd5d654d1833be335c21c20724032c4438d7d8bc.tar.xz |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'pyload/web/app/scripts/views/input/inputLoader.js')
-rw-r--r-- | pyload/web/app/scripts/views/input/inputLoader.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pyload/web/app/scripts/views/input/inputLoader.js b/pyload/web/app/scripts/views/input/inputLoader.js index 04d591d30..c28572c6c 100644 --- a/pyload/web/app/scripts/views/input/inputLoader.js +++ b/pyload/web/app/scripts/views/input/inputLoader.js @@ -1,8 +1,13 @@ -define(['./textInput'], function(textInput) { +define(['utils/apitypes', './textInput', './clickInput'], function(Api, textInput, clickInput) { 'use strict'; // selects appropriate input element return function(input) { + console.log('Select input', input); + + if (input.type == Api.InputType.Click) + return clickInput; + return textInput; }; });
\ No newline at end of file |