hooch 0.15.23 → 0.15.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/hooch.js +8 -17
- data/lib/hooch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '091bedb5eed98d7ed1dfea1bf768a745286d3107'
|
4
|
+
data.tar.gz: 1c2b2b68684afbff2563d9b6c54d4ad4f8e86064
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
1497
|
-
|
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
|
-
|
1509
|
-
if(this.
|
1510
|
-
this.
|
1511
|
-
delete this.
|
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.
|
1513
|
+
sorter.unMaskMe()
|
1523
1514
|
}
|
1524
1515
|
})
|
1525
1516
|
},
|
data/lib/hooch/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|