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: 7e28497f5dcb13484e39e4026ca57cd80b0f00b3
4
- data.tar.gz: 8e79d388b823765605580f038f2105d92786badc
3
+ metadata.gz: bb96101ecc42732d52ea9039accc075f9ceba999
4
+ data.tar.gz: d7c2e869e51bbefdfd060773c89d5f9e2961b387
5
5
  SHA512:
6
- metadata.gz: 3b3ce59ae763bdfa82df047def8e5d75e86595ebf3ec6a23f67e4548966d4181f5ee8d4404c4d5cfbc7d9480a919a1c3e249ef3e0824498eb3332e0cad3e0596
7
- data.tar.gz: e8d26a8375c198c8064302b32f26a375cfa0bcdf7d6755e2f83fbbdb2f22c7ef16ef259ad15967770588ea62753163017d9f37f8be02ac823342984160455131
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
- @closeSweetAlert($elem)
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
  #
@@ -1,3 +1,3 @@
1
1
  module Abstracted
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abstracted
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Walther H Diechmann