rails_sortable 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_sortable/version.rb +1 -1
- data/vendor/assets/javascripts/plugin.js +4 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a7af5d942a8451358e832b796966b930246a268ada95a911e3d2ffd8cf77a83
|
4
|
+
data.tar.gz: 67cb118503633f2e882f92bfbe97585a7f5f9f636d8534b3365989b636fbb2bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3169f4792bad6175e85872eb8bdc048607218ca925c81d75567fd4474ca1769728692fef7d09006e1dedaf88ff4fd8edc862650b9da2764622972924d91d7874
|
7
|
+
data.tar.gz: 15976342a3f98e750b5f319c01c4720d9c357c5e8ad1ba775079066609533392e3e0ab5d6f33c0b8c57515d09a46dea0423f8f16a98584102c86985e93a9ee5d
|
@@ -3,6 +3,8 @@
|
|
3
3
|
$.fn.railsSortable = function(options) {
|
4
4
|
options = options || {};
|
5
5
|
var settings = $.extend({}, options);
|
6
|
+
|
7
|
+
settings.baseUrl = settings.baseUrl || '';
|
6
8
|
|
7
9
|
settings.update = function(event, ui) {
|
8
10
|
if (typeof options.update === 'function') {
|
@@ -11,7 +13,7 @@
|
|
11
13
|
|
12
14
|
$.ajax({
|
13
15
|
type: 'POST',
|
14
|
-
url: '/sortable/reorder',
|
16
|
+
url: settings.baseUrl + '/sortable/reorder',
|
15
17
|
dataType: 'json',
|
16
18
|
contentType: 'application/json',
|
17
19
|
data: JSON.stringify({
|
@@ -22,4 +24,4 @@
|
|
22
24
|
|
23
25
|
this.sortable(settings);
|
24
26
|
};
|
25
|
-
})(jQuery);
|
27
|
+
})(jQuery);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_sortable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- itmammoth
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -199,7 +199,7 @@ homepage: https://github.com/itmammoth/rails_sortable
|
|
199
199
|
licenses:
|
200
200
|
- MIT
|
201
201
|
metadata: {}
|
202
|
-
post_install_message:
|
202
|
+
post_install_message:
|
203
203
|
rdoc_options: []
|
204
204
|
require_paths:
|
205
205
|
- lib
|
@@ -214,8 +214,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
216
|
requirements: []
|
217
|
-
rubygems_version: 3.
|
218
|
-
signing_key:
|
217
|
+
rubygems_version: 3.4.6
|
218
|
+
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: Easy drag & drop sorting for rails.
|
221
221
|
test_files:
|