abstracted 0.3.0 → 0.3.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb96101ecc42732d52ea9039accc075f9ceba999
|
4
|
+
data.tar.gz: d7c2e869e51bbefdfd060773c89d5f9e2961b387
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31eef7f4712286023493863832f2e66e0473e3dbe59c6ae10a9eb64d0ee62eb0ddea4840bcca3be49d80cf766dd769ef519f1a8561a8658b5211ff4f30361441
|
7
|
+
data.tar.gz: 2024c2edbb24fdd5088d2dadfdc1bd66ef7a4be13eadce50fc055700fcba13e6fc076ec5f6def9e065b3be044f933ffd8cf92cdfa595f0b9783729a4dd0f145b
|
@@ -2,17 +2,7 @@ class App.fabDelete
|
|
2
2
|
|
3
3
|
constructor: (@el) ->
|
4
4
|
# initialize some stuff
|
5
|
-
|
6
|
-
closeSweetAlert: ($elem=null) =>
|
7
|
-
try
|
8
|
-
unless $elem == undefined
|
9
|
-
$elem.show()
|
10
|
-
swal.close()
|
11
|
-
catch error
|
12
|
-
$('.sweet-overlay').hide()
|
13
|
-
$('.sweet-alert').hide()
|
14
|
-
|
15
|
-
|
5
|
+
|
16
6
|
#
|
17
7
|
# deletePost handles deleting records
|
18
8
|
#
|
@@ -31,7 +21,7 @@ class App.fabDelete
|
|
31
21
|
.done (data) =>
|
32
22
|
if $remove
|
33
23
|
$remove.hide()
|
34
|
-
|
24
|
+
App.shared.closeSweetAlert($elem)
|
35
25
|
#swal("Deleted!", "Your file was successfully deleted!", "success")
|
36
26
|
.fail (data) =>
|
37
27
|
$elem.show()
|
@@ -50,6 +50,18 @@ class App.Shared
|
|
50
50
|
else
|
51
51
|
window.location = downloadUrl
|
52
52
|
|
53
|
+
|
54
|
+
|
55
|
+
closeSweetAlert: ($elem=null) =>
|
56
|
+
try
|
57
|
+
unless $elem == undefined
|
58
|
+
$elem.show()
|
59
|
+
swal.close()
|
60
|
+
catch error
|
61
|
+
$('.sweet-overlay').hide()
|
62
|
+
$('.sweet-alert').hide()
|
63
|
+
|
64
|
+
|
53
65
|
# cloneObject will make a copy of an object - not a copy of the reference
|
54
66
|
# to some object!
|
55
67
|
#
|
data/lib/abstracted/version.rb
CHANGED