material_raingular 0.1.3.5 → 0.1.4

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: e0541d66f235ba0e3ceed9369cd6e0d65a80eef4
4
- data.tar.gz: 32fdcba3dd949f193761fc5ea4ebf033baf025bd
3
+ metadata.gz: 1fbc1c8e457d3d29a51cfdeef987f75f1b8c9388
4
+ data.tar.gz: 348434658ae4ad9f254f751bc480c5d6297ce964
5
5
  SHA512:
6
- metadata.gz: a6487165d623bf7cbe4d47fd83f00e3899aab242eeb914dccecfb15c1c64befd119291074621fb62e75da398291a569957c424c390a8a78d147f5fd97526ba42
7
- data.tar.gz: f2c5fa8944a2bad2106f1bc9702422977ac1a137912b59d82a78780ac7a38508ccf1aa1a3860ef7e7d6d5eb468e3178de214100c7f2912be86502c6c275f3ace
6
+ metadata.gz: 8929655ac842dea0fca60478d9cf8a98337e9becf008e71f7a5867deee21a610423f2541d59fb74de35a0617a71420e9fd14e5af9af14f9025e46841c38bd1ee
7
+ data.tar.gz: 8caf7efd64684a7d0f8b2cdb4ee97809e793466fb21a325678c4a14bed74a7228ae5487db8f77a47dce91332a606d7b6ecba3a2fda17015664f3509f40c4229f
@@ -67,7 +67,7 @@ class MobileTemplate
67
67
  @inputFunction(event)
68
68
 
69
69
  class StandardTemplate
70
- constructor: (@element,attrs,functions,@disabled) ->
70
+ constructor: (@element,attrs,functions,@disabled,@viewOptions) ->
71
71
  @span = angular.element "<span></span>"
72
72
  @search = angular.element "<input class='autocomplete' type='search' placeholder='" + attrs.placeholder + "'>"
73
73
  @tempHolder = angular.element "<div class='autocomplete menu md-whiteframe-z1'>"
@@ -81,7 +81,7 @@ class StandardTemplate
81
81
  @stylize()
82
82
  @bind()
83
83
  stylize: ->
84
- @search.css('width',window.getComputedStyle(@element[0]).width)
84
+ @search.css('width',@viewOptions.width || window.getComputedStyle(@element[0]).width)
85
85
  @search.addClass('md-input') if @element.hasClass('md-input')
86
86
  @search.css('color', 'black')
87
87
  @element.css('position','relative').css('overflow','visible')
@@ -318,7 +318,7 @@ angular.module('FilteredSelect', [])
318
318
  if isMobile = typeof attrs.ngMobile != 'undefined'
319
319
  elements = new MobileTemplate(element,eFunctions.mobile())
320
320
  else
321
- elements = new StandardTemplate(element,attrs,eFunctions.standard(),disabled())
321
+ elements = new StandardTemplate(element,attrs,eFunctions.standard(),disabled(),viewOptions)
322
322
  scope.$watchCollection functions.collection, (newVal,oldVal) ->
323
323
  return if newVal == oldVal
324
324
  setInitialValue()
@@ -21,7 +21,7 @@ angular.module 'NgCreate', ['Factories', 'FactoryName']
21
21
  object[parentName + '_id'] = scope[parentName].id if parentName.indexOf('_id') < 0
22
22
  list.create object, (returnData) ->
23
23
  if addTo
24
- scope[addTo].push(returnData)
24
+ scope.$eval(addTo).push(returnData)
25
25
  if listName
26
26
  scope = if scope[parentName] then scope else scope.$parent
27
27
  scope[parentName] = {} unless scope[parentName]
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.1.3.5"
2
+ VERSION = "0.1.4"
3
3
  end
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.1.3.5
4
+ version: 0.1.4
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-04-11 00:00:00.000000000 Z
11
+ date: 2016-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  requirements: []
146
146
  rubyforge_project:
147
- rubygems_version: 2.5.1
147
+ rubygems_version: 2.4.3
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: Angular v1.4 for rails. Angular Material v0.9.8.