bootstrap-sass-extensions 2.3.2.5 → 2.3.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/vendor/assets/javascripts/bootstrap-autocomplete.js +15 -7
- metadata +7 -9
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 092ef516bfa3c168f13a54ee7a78a03905c0fae3
|
4
|
+
data.tar.gz: e5de8c2d7513d7c29a4a72432fabbcc976377f6c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 61e0132f8dc5aa47f11e3b87c2b37bac3a969c9a10340683761f1c2e1a66ffe9dcaf89785609335f30fd2fdf687648138d053fae00fe9d67cad481dcd3ddad3b
|
7
|
+
data.tar.gz: 290c94fe6ffef4405943b0a4de11a8519258c715f103a03a9db64340ce0bc14b862af9e308e35e8b4f04dee1efc4aec540a6f3872eeea05ba4448167bca43e77
|
@@ -52,8 +52,8 @@
|
|
52
52
|
, initializeForRemoteSource: function() {
|
53
53
|
var that = this,
|
54
54
|
label = this.$element.val()
|
55
|
-
this.source(label, function (
|
56
|
-
that.last_processed_source =
|
55
|
+
this.source(label, function (source) {
|
56
|
+
that.last_processed_source = prepare_source(source)
|
57
57
|
})
|
58
58
|
}
|
59
59
|
|
@@ -63,17 +63,17 @@
|
|
63
63
|
var label = this.source[value]
|
64
64
|
this.$element.val(label)
|
65
65
|
}
|
66
|
-
this.last_processed_source = this.source
|
66
|
+
this.last_processed_source = prepare_source(this.source)
|
67
67
|
}
|
68
68
|
|
69
|
-
, process: function (
|
70
|
-
this.last_processed_source =
|
71
|
-
var labels = $.map(
|
69
|
+
, process: function (source) {
|
70
|
+
this.last_processed_source = prepare_source(source)
|
71
|
+
var labels = $.map(this.last_processed_source, function(item) { return item[1] })
|
72
72
|
return Typeahead.prototype.process.apply(this, [labels])
|
73
73
|
}
|
74
74
|
|
75
75
|
, updater: function (label) {
|
76
|
-
var found_values = $.map(this.last_processed_source, function (
|
76
|
+
var found_values = $.map(this.last_processed_source, function (item) { if (item[1] == label) return item[0] })
|
77
77
|
var value = found_values[0]
|
78
78
|
if (!this.options.arbitrary && typeof value == 'undefined') {
|
79
79
|
label = ''
|
@@ -98,6 +98,14 @@
|
|
98
98
|
|
99
99
|
})
|
100
100
|
|
101
|
+
var prepare_source = function (source) {
|
102
|
+
if ($.isPlainObject(source)) {
|
103
|
+
return $.map(source, function(v, k) {
|
104
|
+
return [[k, v]]
|
105
|
+
})
|
106
|
+
}
|
107
|
+
return source
|
108
|
+
}
|
101
109
|
|
102
110
|
/* AUTOCOMPLETE PLUGIN DEFINITION
|
103
111
|
* ============================== */
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-sass-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 2.3.2.5
|
4
|
+
version: 2.3.2.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Misha Bashkirov
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-01-30 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: New and improved Bootstrap features on the foundation of bootstrap-sass
|
15
14
|
gem.
|
@@ -23,27 +22,26 @@ files:
|
|
23
22
|
- lib/bootstrap-sass-extensions.rb
|
24
23
|
homepage: http://github.com/bashmish/bootstrap-sass-extensions
|
25
24
|
licenses: []
|
25
|
+
metadata: {}
|
26
26
|
post_install_message:
|
27
27
|
rdoc_options: []
|
28
28
|
require_paths:
|
29
29
|
- lib
|
30
30
|
required_ruby_version: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - '>='
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
|
-
none: false
|
36
35
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
37
36
|
requirements:
|
38
|
-
- -
|
37
|
+
- - '>='
|
39
38
|
- !ruby/object:Gem::Version
|
40
39
|
version: '0'
|
41
|
-
none: false
|
42
40
|
requirements: []
|
43
41
|
rubyforge_project:
|
44
|
-
rubygems_version:
|
42
|
+
rubygems_version: 2.0.3
|
45
43
|
signing_key:
|
46
|
-
specification_version:
|
44
|
+
specification_version: 4
|
47
45
|
summary: Extensions for bootstrap-sass gem.
|
48
46
|
test_files: []
|
49
47
|
has_rdoc:
|