material_raingular 0.0.2.6 → 0.0.2.6.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: 54123439bad50d30d3a2cf9cba521c8a72658036
|
4
|
+
data.tar.gz: 2abf7bb855b5d8dc7781202149f0b1c996d3fc71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d9ba6b319bd8bde72fc9bf8d12696da1a885be6cfcd94c004f93f37c8a2a0579a8716904f509bfe20f9e527ee4e8909fea3c1280241f848dfc4c3a9503c3085
|
7
|
+
data.tar.gz: 8a77be37c304d02808932479957a9b96a533fd9fecfd6d0fdd1f5c1f7813704cf5230f4cbb6bfe71f1568c255c05ac7049a79f4c04d266603e1e0386c2f1b3e8
|
@@ -15,8 +15,10 @@ angular.module 'NgCreate', ['Factories', 'FactoryName']
|
|
15
15
|
object = {}
|
16
16
|
object[modelName] = attributes
|
17
17
|
if parentName
|
18
|
-
object[parentName] = $scope[parentName] unless parentName.indexOf('_id') < 0
|
19
|
-
object[parentName + '_id'] = $scope[parentName].id if parentName.indexOf('_id') < 0
|
18
|
+
object[modelName][parentName] = $scope[parentName] unless parentName.indexOf('_id') < 0
|
19
|
+
object[modelName][parentName + '_id'] = $scope[parentName].id if parentName.indexOf('_id') < 0
|
20
|
+
object[parentName] = $scope[parentName] unless parentName.indexOf('_id') < 0
|
21
|
+
object[parentName + '_id'] = $scope[parentName].id if parentName.indexOf('_id') < 0
|
20
22
|
list.create object, (returnData) ->
|
21
23
|
if addTo
|
22
24
|
$scope[addTo].push(returnData)
|
@@ -18,6 +18,7 @@ angular.module 'NgUpdate', ['Factories', 'FactoryName']
|
|
18
18
|
placeholder += word[0].toUpperCase() + word[1..-1].toLowerCase() + ' '
|
19
19
|
callModel += ',' + attributes.ngTrackBy if attributes.ngTrackBy
|
20
20
|
callFunction = 'update("' + callModel + '")'
|
21
|
+
callFunction += ';' + attributes.ngCallback if attributes.ngCallback
|
21
22
|
if element[0].tagName == 'INPUT'
|
22
23
|
html[0].setAttribute("ng-change-on-blur", callFunction) if attributes.type != 'radio' && attributes.type != 'checkbox' && attributes.type != 'hidden'
|
23
24
|
html[0].setAttribute("ng-change", callFunction) unless attributes.type != 'radio' && attributes.type != 'checkbox' && attributes.type != 'hidden'
|
@@ -27,6 +28,7 @@ angular.module 'NgUpdate', ['Factories', 'FactoryName']
|
|
27
28
|
html[0].setAttribute("ng-change-debounce", callFunction)
|
28
29
|
else
|
29
30
|
callFunction = callModel + ' = !' + callModel + ' ; update("' + callModel + '")'
|
31
|
+
callFunction += ';' + attributes.ngCallback if attributes.ngCallback
|
30
32
|
html[0].setAttribute("ng-click", callFunction)
|
31
33
|
html[0].setAttribute('placeholder',placeholder)
|
32
34
|
html[0].removeAttribute('ng-update')
|
@@ -59,4 +61,3 @@ angular.module 'NgUpdate', ['Factories', 'FactoryName']
|
|
59
61
|
for callFunction in functions
|
60
62
|
callFunctions.push(callFunction + ',' + JSON.stringify(returnData) + ')') if callFunction.length > 0
|
61
63
|
$scope.$eval( callFunctions.join('') ) if callFunctions.join('').length > 0
|
62
|
-
ngCallbackCtrl.evaluate(returnData) if !!ngCallbackCtrl
|