bootstrap-combobox 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  module Bootstrap
2
2
  module Combobox
3
3
  # This version is a little arbitrary; at time of this writing source fork is at 1.1-WIP?
4
- VERSION = "1.2.3"
4
+ VERSION = "1.2.4"
5
5
  end
6
6
  end
@@ -47,7 +47,6 @@
47
47
  constructor: Combobox
48
48
 
49
49
  , setup: function () {
50
- console.log('setup')
51
50
  var combobox = $(this.options.template)
52
51
  this.$source.before(combobox)
53
52
  this.$source.hide()
@@ -55,7 +54,6 @@
55
54
  }
56
55
 
57
56
  , parse: function () {
58
- console.log('parse')
59
57
  var that = this
60
58
  , map = {}
61
59
  , source = []
@@ -80,7 +78,6 @@
80
78
  }
81
79
 
82
80
  , transferAttributes: function() {
83
- console.log('transferAttributes')
84
81
  this.options.placeholder = this.$source.attr('data-placeholder') || this.options.placeholder
85
82
  this.$element.attr('placeholder', this.options.placeholder)
86
83
  this.$target.prop('name', this.$source.prop('name'))
@@ -95,7 +92,6 @@
95
92
  }
96
93
 
97
94
  , toggle: function () {
98
- console.log('toggle')
99
95
  if (this.$container.hasClass('combobox-selected')) {
100
96
  this.clearTarget()
101
97
  this.triggerChange()
@@ -111,12 +107,10 @@
111
107
  }
112
108
 
113
109
  , clearElement: function () {
114
- console.log('clearElement')
115
110
  this.$element.val('').focus()
116
111
  }
117
112
 
118
113
  , clearTarget: function () {
119
- console.log('clearTarget')
120
114
  this.$source.val('')
121
115
  this.$target.val('')
122
116
  this.$container.removeClass('combobox-selected')
@@ -124,21 +118,17 @@
124
118
  }
125
119
 
126
120
  , triggerChange: function () {
127
- console.log('triggerChagne')
128
121
  this.$source.trigger('change')
129
122
  }
130
123
 
131
124
  , refresh: function () {
132
- console.log('refresh')
133
125
  this.source = this.parse()
134
126
  this.options.items = this.source.length
135
127
  }
136
128
 
137
129
  // modified typeahead function adding container and target handling
138
130
  , select: function () {
139
- console.log('select')
140
131
  var val = this.$menu.find('.active').attr('data-value')
141
- console.log('in select, val is: ' + val + ' this.query is ' + this.query)
142
132
  var mapped_val = this.map[val]
143
133
  if (!this.options.force_match && this.query != '' && !this.matcher(val)) {
144
134
  val = this.query
@@ -155,14 +145,12 @@
155
145
 
156
146
  // modified typeahead function removing the blank handling and source function handling
157
147
  , lookup: function (event) {
158
- console.log('lookup')
159
148
  this.query = this.$element.val()
160
149
  return this.process(this.source)
161
150
  }
162
151
 
163
152
  // modified typeahead function adding button handling and remove mouseleave
164
153
  , listen: function () {
165
- console.log('listen')
166
154
  this.$element
167
155
  .on('focus', $.proxy(this.focus, this))
168
156
  .on('blur', $.proxy(this.blur, this))
@@ -184,7 +172,6 @@
184
172
 
185
173
  // modified typeahead function to clear on type and prevent on moving around
186
174
  , keyup: function (e) {
187
- console.log('keyup')
188
175
  switch(e.keyCode) {
189
176
  case 40: // down arrow
190
177
  case 39: // right arrow
@@ -219,7 +206,6 @@
219
206
 
220
207
  // modified typeahead function to force a match and add a delay on hide
221
208
  , blur: function (e) {
222
- console.log('blur')
223
209
  var that = this
224
210
  this.focused = false
225
211
  var val = this.$element.val()
@@ -237,7 +223,6 @@
237
223
 
238
224
  // modified typeahead function to not hide
239
225
  , mouseleave: function (e) {
240
- console.log('mouseleave')
241
226
  this.mousedover = false
242
227
  }
243
228
  })
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-combobox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: