hooch 0.15.23 → 0.15.24

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: c6788c9c60a2caf174c51ec87262413fb1e895e3
4
- data.tar.gz: 4420eeaf68065fe3a3e1cbd0e7822aa6dd9fa7a5
3
+ metadata.gz: '091bedb5eed98d7ed1dfea1bf768a745286d3107'
4
+ data.tar.gz: 1c2b2b68684afbff2563d9b6c54d4ad4f8e86064
5
5
  SHA512:
6
- metadata.gz: 496455d7ab46420cf47a35670e127c13db153ba128e1ac2e9b57b0d8fa8c7fb46f88e9ce0d7a65118208d9cfde07b7fb288c274a3df9f67f12c6c863606234b9
7
- data.tar.gz: 636c2d5ea8e80ae24206385d6f3ba2bf4d64b822cbd719117822a8b1c4d2073a94a2ebc01283205291734750359f047fe900ef5c65c13a623561feb2eb563619
6
+ metadata.gz: 9d37881ab25b39b55fffd3472ec9f247dc0b62fc5adbfbed02e407c73f6bacc0a7d2dc1b750dc0c8b6e791a1e1ff4ed93205fec32fc93fa89e0f7f2b2ebb1d8c
7
+ data.tar.gz: 21dbad6f050516f5c642f96c896fa88639ef970312fbeb18a209ef314c342e486dff7dcc8289bc086e911a9c11dcad94755f7c9373df66b8f678552c9b72cab1
@@ -1482,6 +1482,7 @@ var initHooch = function(){
1482
1482
  this.getSortElements()
1483
1483
  },
1484
1484
  dropDraggingElement: function(){
1485
+ this.maskMe()
1485
1486
  this.reinsertDraggingElement()
1486
1487
  this.sendSort()
1487
1488
  },
@@ -1493,33 +1494,23 @@ var initHooch = function(){
1493
1494
  this.refreshGrid();
1494
1495
  }
1495
1496
  },
1496
- getProgressTarget: function(){
1497
- if(this.$progress_target) return
1498
- if(this.$sorter.data('progress-target')){
1499
- this.$progress_target = $(this.$sorter.data('progress-target'))
1500
- }
1501
- },
1502
- startProgressIndicator: function(){
1503
- this.getProgressTarget()
1504
- if(this.$progress_target){
1505
- this.progress_indicator = new thin_man.AjaxProgress(this.$progress_target,this.$sorter,'black')
1506
- }
1497
+ maskMe: function(){
1498
+ this.mask = new thin_man.AjaxMask(this.$sorter,'')
1507
1499
  },
1508
- stopProgressIndicator: function(){
1509
- if(this.progress_indicator){
1510
- this.progress_indicator.stop()
1511
- delete this.progress_indicator
1500
+ unMaskMe: function(){
1501
+ if(this.mask){
1502
+ this.mask.remove()
1503
+ delete this.mask
1512
1504
  }
1513
1505
  },
1514
1506
  sendSort: function(){
1515
- this.startProgressIndicator()
1516
1507
  var sorter = this
1517
1508
  $.ajax({
1518
1509
  url: this.$sorter.attr('href'),
1519
1510
  method: 'PATCH',
1520
1511
  data: this.getFormData(),
1521
1512
  complete: function(jqXHR) {
1522
- sorter.stopProgressIndicator()
1513
+ sorter.unMaskMe()
1523
1514
  }
1524
1515
  })
1525
1516
  },
@@ -1,3 +1,3 @@
1
1
  module Hooch
2
- VERSION = "0.15.23"
2
+ VERSION = "0.15.24"
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.15.23
4
+ version: 0.15.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-27 00:00:00.000000000 Z
11
+ date: 2018-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails