sortablelabel-js 0.9.1 → 1.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
  SHA1:
3
- metadata.gz: 9b09561d298c4b4614efc2e16d0cc3c48c02e791
4
- data.tar.gz: c6d1be27ea7744d0c57e809170260d0582a75105
3
+ metadata.gz: 7d0ef061a83ba428765d342e872d0644d334ec58
4
+ data.tar.gz: 236dcb4749cda4c0535ee267bd7d5fdc06ada6cc
5
5
  SHA512:
6
- metadata.gz: e743e33e48acc631c3bc97bd962355816071d63fa86bd5e3b95845eda959d7af5200c5ae97f6dca8faa5ef46a27951b0816c444d1bff7adc3478b60675e34732
7
- data.tar.gz: 7d50db2bfba8c82ee772222c7b4afd44e021287c1c8b3516d096d8da6f44ec7fb414aa30fc33876b3749e5740d7c48b922bb662da6a3d84f4a0004819f81d886
6
+ metadata.gz: 3f5fa2d1967ef4fa1255ad16effb7ec793431c5a4797330c35c12dd0ff6a9ac7b82845bbcd5037a7b8b68e74395f9973c5330144620c7c42fdc036a0029c5ef2
7
+ data.tar.gz: 47c25fada8442e83ec88d1b4de7bc84abe1d08e70cc7efa8aca3c9cdeb9dbe012e6416ab000fb0e146c864b8d4b3e9335cd9295ec5bf7ba6ecc078c2c91f5fa2
@@ -1,5 +1,5 @@
1
1
  module Sortablelabel
2
2
  module Js
3
- VERSION = "0.9.1"
3
+ VERSION = "1.0"
4
4
  end
5
5
  end
@@ -13,6 +13,7 @@ class @SortableLabel
13
13
  @options = $.extend({}, defaults, options)
14
14
  @target = scope
15
15
  @targetId = @options['fieldName'] || @target.attr('id')
16
+ @callback = @options["callback"]
16
17
  @calInitStepLable()
17
18
 
18
19
  $(document).on("nested:fieldAdded:#{@targetId}", (event) =>
@@ -81,6 +82,8 @@ class @SortableLabel
81
82
  stepCount += 1
82
83
  )
83
84
  )
85
+ if typeof(@callback) == 'function'
86
+ @callback();
84
87
 
85
88
  calWeekGroupLabel: (target) ->
86
89
  _this = this
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sortablelabel-js
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: '1.0'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-01 00:00:00.000000000 Z
11
+ date: 2018-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler