hooch 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3624e98c3171f537a952c19c713b8e13a7e48d84
4
- data.tar.gz: 293370be919d7515b8269ffac2b73a5e50d0c0ec
3
+ metadata.gz: 4d5952278092a6b6fbf632e28c5d8b7dd294133f
4
+ data.tar.gz: d2ba605a6702ce344bd69302d6502477b0f98af6
5
5
  SHA512:
6
- metadata.gz: 246f09f2152b970d6a8b5eac82e97d878e6f4bf6174b44016a366a6bff590e02c0726fab529a229cc42e5f8ac450f15fad025b131a7dfc0f5ac76d87aa4f1736
7
- data.tar.gz: b7e6f61ad88321970ea3f31f12bb75529dff13eb83e059bc91e4e7e010c53641f2aef7d56cf991492924488491144e0ec7bba94868bcd0fd6a533eb83d7cf1e8
6
+ metadata.gz: 8c36a6268a77f254fb9ad2339393e694572a60507014456aeda23bbaf1dff9ff90bd77d67f178a874929347ae69a6e2401ebd52d7cda55bb28b54d1c73866e41
7
+ data.tar.gz: 538f6a4e4753aa95329e1a91ad501971a702b0e13b4957460a308faf1eb3c2b1540da9401b41e1309e5eda52dddc57e825041d7c7fb30525599ad8267983ba6e
@@ -605,7 +605,7 @@ var initHooch = function(){
605
605
  var observer = new MutationObserver(function(mutations) {
606
606
  sorter.handleMutations(mutations)
607
607
  });
608
- var config = { childList: true };
608
+ var config = { childList: true, subtree: true };
609
609
  observer.observe($sorter[0], config);
610
610
  },
611
611
  onMousemove: function(e){
@@ -646,13 +646,13 @@ var initHooch = function(){
646
646
  mutations.forEach(function(mutation) {
647
647
  if(mutation.addedNodes.length > 0){
648
648
  var added_node = $(mutation.addedNodes[0])
649
- if((added_node.attr('id') && !added_node.attr('id').startsWith('thin_man_ajax_progress')) && !added_node.data('hooch-sorter-managed')){
649
+ if((!added_node.attr('id') || !added_node.attr('id').startsWith('thin_man_ajax_progress')) && !added_node.data('hooch-sorter-managed')){
650
650
  sorter.getSortElements()
651
651
  }
652
652
  }
653
653
  if(mutation.removedNodes.length > 0){
654
654
  var removed_node = $(mutation.removedNodes[0])
655
- if((removed_node.attr('id') && !removed_node.attr('id').startsWith('thin_man_ajax_progress')) && !removed_node.data('hooch-sorter-managed')){
655
+ if((!removed_node.attr('id') || !removed_node.attr('id').startsWith('thin_man_ajax_progress')) && !removed_node.data('hooch-sorter-managed')){
656
656
  sorter.getSortElements()
657
657
  }
658
658
  }
@@ -700,7 +700,7 @@ var initHooch = function(){
700
700
  }
701
701
  sorter.rows[elem_top].push(this_element)
702
702
  })
703
- this.row_keys = Object.keys(this.rows).map(function(val,i){return parseInt(val)}).sort(sorter.numberSort)
703
+ this.row_keys = Object.keys(this.rows).map(function(val,i){return parseFloat(val)}).sort(sorter.numberSort)
704
704
  $.each(this.rows, function(row_key,row){row.sort(sorter.elementHorizontalSort)})
705
705
  },
706
706
  redrawDraggingElement: function(e){
@@ -966,6 +966,7 @@ var initHooch = function(){
966
966
  }
967
967
  this.dragging = false
968
968
  this.getDragHandle()
969
+ this.$sort_element.css({cursor: ''});
969
970
  this.$drag_handle.css({cursor: 'move'});
970
971
  var sort_element = this
971
972
  this.$drag_handle.on('mousedown', $.proxy(sort_element.onMousedown, sort_element))
@@ -1,3 +1,3 @@
1
1
  module Hooch
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hooch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-17 00:00:00.000000000 Z
11
+ date: 2015-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails