material_raingular 0.0.2.6 → 0.0.2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d682da46b3c4eec8b890748878f6fe659630de5
4
- data.tar.gz: 9ad820a90a90c83604ef0d3192e8024385af0587
3
+ metadata.gz: 54123439bad50d30d3a2cf9cba521c8a72658036
4
+ data.tar.gz: 2abf7bb855b5d8dc7781202149f0b1c996d3fc71
5
5
  SHA512:
6
- metadata.gz: 3bc1fc38c5aa76ba7886b27dc5980219f2bb41d1104b953540226e866da88be660db80c6d5f270511c8dee6b99f7dac41066a4f0211dbe72560d3b43f13c5e94
7
- data.tar.gz: 88593dbecd75b04f400b4139ffccc2face2a02ed746c8090612662b049c515563086fc4f02a31c76eaf1d45a9eddb35fd3211c8c4db741eee94a1e07729ffe8c
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
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.0.2.6"
2
+ VERSION = "0.0.2.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_raingular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.6
4
+ version: 0.0.2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Moody