bootstrap-sass-extensions 2.3.2.2 → 2.3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,7 +32,8 @@
32
32
  var Autocomplete = function(element, options) {
33
33
  Typeahead.apply(this, [element, options])
34
34
  this.options = $.extend({}, $.fn.autocomplete.defaults, options)
35
- this.$hidden_input = this.$element.prev('input:hidden')
35
+ this.label_updated = this.options.label_updated || this.label_updated
36
+ this.$hidden_input = this.$element.prev('input')
36
37
  if (this.source_is_remote) {
37
38
  this.initializeForRemoteSource()
38
39
  } else {
@@ -77,8 +78,14 @@
77
78
  if (!this.options.arbitrary && typeof value == 'undefined') {
78
79
  label = ''
79
80
  }
81
+ this.value_updated(value)
80
82
  this.$hidden_input.val(value)
81
- return Typeahead.prototype.updater.apply(this, [label])
83
+ this.label_updated(label)
84
+ return label
85
+ }
86
+
87
+ , label_updated: function(label) {
88
+ // use your own one to watch for label update
82
89
  }
83
90
 
84
91
  , blur: function (e) {
@@ -34,6 +34,7 @@
34
34
  this.sorter = this.options.sorter || this.sorter
35
35
  this.highlighter = this.options.highlighter || this.highlighter
36
36
  this.updater = this.options.updater || this.updater
37
+ this.value_updated = this.options.value_updated || this.value_updated
37
38
  this.source = this.options.source
38
39
  this.$menu = $(this.options.menu)
39
40
 
@@ -67,6 +68,7 @@
67
68
  }
68
69
 
69
70
  , updater: function (item) {
71
+ this.value_updated(item)
70
72
  return item
71
73
  }
72
74
 
@@ -307,6 +309,10 @@
307
309
  if (!this.focused && this.shown) this.hide()
308
310
  }
309
311
 
312
+ , value_updated: function(value) {
313
+ // use your own one to watch for value update
314
+ }
315
+
310
316
  }
311
317
 
312
318
 
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: bootstrap-sass-extensions
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.3.2.2
5
+ version: 2.3.2.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Michael Bashkirov
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-26 00:00:00.000000000 Z
12
+ date: 2013-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  version_requirements: !ruby/object:Gem::Requirement