material_raingular 0.2.2 → 0.2.3
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: df739fdf0ca5bac9d3ebbc491e5061195741fb82
|
4
|
+
data.tar.gz: 609bd11a694ca07ceed95ffc8862f6b6326740e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cdc768afc76411520b91dd5995866e39cf4d2ad205c5e3d41d1b0d2e2db3d2aa04792d9d85c61756260cdefa534c55619224a6c2db74b5119c8f0c7ab6b251c
|
7
|
+
data.tar.gz: 65bcabba1e1603b643b5329b05cd8345c029aad81221f8d687ec6b0d41b9284fcdc654b27228ea4d49bbff7e1db41eb3e04fd142b77b69ee57b1bffa50e4a466
|
@@ -20,8 +20,10 @@ angular.module 'NgDestroy', ['Factories']
|
|
20
20
|
list = list[childScope]
|
21
21
|
else
|
22
22
|
list = scope[factory]
|
23
|
-
list
|
23
|
+
resource = list #Save resource for later if server returns success
|
24
24
|
list = $injector.get(factory)
|
25
25
|
object = {id: scope[modelName].id}
|
26
|
-
list.delete
|
26
|
+
list.delete(object).$promise #remove from server
|
27
|
+
.then (returnData)->
|
28
|
+
resource.drop(scope[modelName]) #remove from view
|
27
29
|
ngCallbackCtrl.evaluate(returnData) if !!ngCallbackCtrl
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: material_raingular
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Moody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|