aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/formfiller.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/data/scripts/formfiller.js')
-rw-r--r--examples/data/scripts/formfiller.js16
1 files changed, 9 insertions, 7 deletions
diff --git a/examples/data/scripts/formfiller.js b/examples/data/scripts/formfiller.js
index 4470661..1b10db4 100644
--- a/examples/data/scripts/formfiller.js
+++ b/examples/data/scripts/formfiller.js
@@ -1,14 +1,16 @@
uzbl.formfiller = {
- inputTypeIsText: function(type) {
- var types = [ 'text', 'password', 'search', 'email', 'url',
- 'number', 'range', 'color', 'date', 'month',
- 'week', 'time', 'datetime', 'datetime-local' ];
+ // this is pointlessly duplicated in uzbl.follow
+ textInputTypes: [
+ 'text', 'password', 'search', 'email', 'url', 'number', 'range', 'color',
+ 'date', 'month', 'week', 'time', 'datetime', 'datetime-local'
+ ]
- for(var i = 0; i < types.length; ++i)
- if(types[i] == type) return true;
+ ,
- return false;
+ // this is pointlessly duplicated in uzbl.follow
+ inputTypeIsText: function(type) {
+ return uzbl.formfiller.textInputTypes.indexOf(type) >= 0;
}
,