ajax_modal_rails 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/assets/javascripts/ajax_modal_rails/index.coffee +1 -3
- data/lib/ajax_modal_rails/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 619376e8499e7a72deb1f781e75012c8b5c0d8f7
|
4
|
+
data.tar.gz: cef18b2b1d966af2370fbdf54493983b80e777b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ce0435cd22307227cf2407d4b93552bd1bd6db4fa995c9face1ff86895f6a331a7a45e9fe3de6eba46a2460912277eaad5e0386dfedb650ee3d9608144d522c
|
7
|
+
data.tar.gz: 104791fd5f6241fea88b439b6b60bf5add8deaced3a5b40fca3910069a5105c2035aa4b4f881d715fc7e24fb43b02030bf3f3da5d77e11c526ba9c0eb9407784
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# AjaxModalRails
|
2
|
-
|
2
|
+
[![Build Status](https://travis-ci.org/existentialmutt/ajax_modal_rails.svg?branch=master)](https://travis-ci.org/existentialmutt/ajax_modal_rails)
|
3
3
|
|
4
|
-
|
4
|
+
This plugin provides a simple way to do common modal interactions in a rails app. Keep your nice thin scaffolded controller, and just include a single mixin. Then add data attribute to links and forms to load pages via ajax in a modal.
|
5
5
|
|
6
6
|
![demo screencast](doc/demo.gif)
|
7
7
|
|
@@ -32,12 +32,10 @@ class window.AjaxModal
|
|
32
32
|
@open
|
33
33
|
|
34
34
|
_registerForms: ->
|
35
|
-
console.log $(@formTriggersSelector).toArray()
|
36
35
|
# scope.find(@formTriggersSelector).attr('data-remote', true)
|
37
36
|
$('body').on 'submit', @formTriggersSelector, (event) =>
|
38
37
|
form = event.currentTarget
|
39
38
|
event.preventDefault()
|
40
|
-
console.log $(form).serialize()
|
41
39
|
$.ajax
|
42
40
|
url: form.getAttribute('action')
|
43
41
|
type: form.getAttribute('method')
|
@@ -67,4 +65,4 @@ class window.AjaxModal
|
|
67
65
|
|
68
66
|
reset: ->
|
69
67
|
@content.html("")
|
70
|
-
@loading.show()
|
68
|
+
@loading.show()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ajax_modal_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafe Rosen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -151,7 +151,21 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: capybara-selenium
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: chromedriver-helper
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
156
170
|
requirements:
|
157
171
|
- - ">="
|
@@ -225,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
239
|
version: '0'
|
226
240
|
requirements: []
|
227
241
|
rubyforge_project:
|
228
|
-
rubygems_version: 2.6.
|
242
|
+
rubygems_version: 2.6.13
|
229
243
|
signing_key:
|
230
244
|
specification_version: 4
|
231
245
|
summary: simple ajax-driven modals for rails
|