simple_form_extension 1.3.16 → 1.3.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module SimpleFormExtension
2
- VERSION = "1.3.16"
2
+ VERSION = "1.3.17"
3
3
  end
@@ -39,7 +39,7 @@ class Selectize
39
39
  @$el.data('search-url')
40
40
 
41
41
  load: (query, callback) =>
42
- callback() unless query.length
42
+ return callback() unless query.length && @searchURL()
43
43
  $.ajax
44
44
  url: @searchURL()
45
45
  type: 'GET'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_form_extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.16
4
+ version: 1.3.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-12 00:00:00.000000000 Z
12
+ date: 2016-02-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails