no-autocomplete-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 13dc5ea68389e70974b5dce44a1efaa0aa2fe449
4
+ data.tar.gz: c4c96f5d9a720dd6121983697a28d278defd2afc
5
+ SHA512:
6
+ metadata.gz: 1c0cdff8ec87c871c4655ccc200c4340ed16ae3dcd0ef7dd2f098dd23e13b6bc949872938d2cdc48a3025e10f0a4e1d88139c500a5f3ce9c39610338bd0ef9e4
7
+ data.tar.gz: c41de4b909e4a8370ff5c4a0fbdcf8cb8370332227e0fa24d7730c9a9cd50b15afe2c79a5a5341a74f1c3c365570f0092aa0c5edacac3a3cf82eeda59d96d361
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright no-autocomplete-rails 2015 JaredLCowan
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,2 @@
1
+ ## No-Autocomplete-Rails
2
+ ![Gem Version](https://badge.fury.io/rb/salty-ui-rails.svg)
@@ -0,0 +1,38 @@
1
+ /*!
2
+ * ===========================================================
3
+ * no-autocomplete-rails.js
4
+ *
5
+ * MIT license
6
+ *
7
+ * Copyright (C) 2015 jaredlucascowan.com
8
+ *
9
+ * Fix for rails simple_form not turning off auto-complete
10
+ *
11
+ * Turn off: $("#YourElement").noAutocomplete({toggle: "off"})
12
+ * Turn on: $("#YourElement").noAutocomplete({toggle: "on"})
13
+ * ==========================================================
14
+ */
15
+
16
+ +function ($) {
17
+ "use strict";
18
+
19
+ $.fn.noAutocomplete = function(custom) {
20
+
21
+ var $this = $(this),
22
+ options = $.extend(true, {
23
+ toggle: "off",
24
+ on: "focus"
25
+ }, custom);
26
+
27
+ $this.bind(options.on, function() {
28
+ $this.attr("autocomplete", options.toggle);
29
+ });
30
+
31
+ return options;
32
+ };
33
+
34
+ $(document).one("ready ajaxStop DOMSubtreeModified", function() {
35
+ $("[no_autocomplete]").noAutocomplete();
36
+ });
37
+ }(jQuery);
38
+
@@ -0,0 +1,8 @@
1
+ module No
2
+ module Autocomplete
3
+ module Rails
4
+ class Engine < ::Rails::Engine
5
+ end
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,7 @@
1
+ module No
2
+ module Autocomplete
3
+ module Rails
4
+ VERSION = "0.0.1"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ require "no/autocomplete/rails/engine"
2
+ require "no/autocomplete/rails/version"
3
+
4
+ module No
5
+ module Autocomplete
6
+ module Rails
7
+ end
8
+ end
9
+ end
@@ -0,0 +1 @@
1
+ require "no/autocomplete/rails"
metadata ADDED
@@ -0,0 +1,65 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: no-autocomplete-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - JaredCowan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-06-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: railties
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '3.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
27
+ description: Toggle autocomplete on forms.
28
+ email:
29
+ - jaredlc@outlook.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - MIT-LICENSE
35
+ - README.md
36
+ - lib/assets/javascripts/no-autocomplete-rails.js
37
+ - lib/no-autocomplete-rails.rb
38
+ - lib/no/autocomplete/rails.rb
39
+ - lib/no/autocomplete/rails/engine.rb
40
+ - lib/no/autocomplete/rails/version.rb
41
+ homepage: http://rubygems.org/gems/salty-ui-rails
42
+ licenses:
43
+ - MIT
44
+ metadata: {}
45
+ post_install_message:
46
+ rdoc_options: []
47
+ require_paths:
48
+ - lib
49
+ required_ruby_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ requirements: []
60
+ rubyforge_project:
61
+ rubygems_version: 2.2.2
62
+ signing_key:
63
+ specification_version: 4
64
+ summary: jQuery Plugin
65
+ test_files: []