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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c44dbc38b1087772a6f32c4db9aa581b453635e689934c4997e60c4ccd1eb11d
4
- data.tar.gz: 947a084a93b82ceda59f03ca652e6d3faa147a3bb8246e7a3f6cb04e662efc88
3
+ metadata.gz: 7a7af5d942a8451358e832b796966b930246a268ada95a911e3d2ffd8cf77a83
4
+ data.tar.gz: 67cb118503633f2e882f92bfbe97585a7f5f9f636d8534b3365989b636fbb2bc
5
5
  SHA512:
6
- metadata.gz: 30d37231a74a61c303360dd18dabe5708614bc8378816327f67e4fcad51c3b0c893bb457cf95cf28c4c49f3f4e8935a48d844dee15b68677705f75829f5895c5
7
- data.tar.gz: bfb2153e6ccee626fffff36bbc6ca1418755d4643eabc96fe31d68e509c6e7406be63d583eb0cfb886a4e9b9676e59fa37bf0fbacd3040a859acd1a90207fac0
6
+ metadata.gz: 3169f4792bad6175e85872eb8bdc048607218ca925c81d75567fd4474ca1769728692fef7d09006e1dedaf88ff4fd8edc862650b9da2764622972924d91d7874
7
+ data.tar.gz: 15976342a3f98e750b5f319c01c4720d9c357c5e8ad1ba775079066609533392e3e0ab5d6f33c0b8c57515d09a46dea0423f8f16a98584102c86985e93a9ee5d
@@ -1,3 +1,3 @@
1
1
  module RailsSortable
2
- VERSION = '1.5.0'
2
+ VERSION = '1.6.0'
3
3
  end
@@ -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.5.0
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: 2022-03-12 00:00:00.000000000 Z
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.3.8
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: