material_raingular 0.0.3.9 → 0.0.4.0

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: e2ce51a4816216e39eab20e65a5bdda552e783aa
4
- data.tar.gz: 2dffcadd7a211a77064798c3cacba4aad4c202e5
3
+ metadata.gz: cb667c540f758c3a45a046bba699a532a9d05a6a
4
+ data.tar.gz: 988ce723b3209d058fa1b735f832e05f174578bb
5
5
  SHA512:
6
- metadata.gz: 318c32a28557d8652b79c9239fa6407f55147dcea11efb968581fb01b089b36dee07302f54cf6f48bfd3089bcdffa74b331a8fcd6569122c56b1321ba9d216ee
7
- data.tar.gz: 64ff0d7edffef27fb82f6514206d275480ccb9fa9743901be20b68f36da21439531ae9f44028d4bc7f9f815cfc8422c8bb6cfdeac3e21d733e13145d68e275cd
6
+ metadata.gz: f0bf5df968ca573aec77044808570b411f781d992c2526e1b72d1ed020ecf859244bf9bce2cd0817663fabc8fc3061603ec4c187f94113cb179aeac6d20de0e1
7
+ data.tar.gz: 2308d86b262ac4cba321c9d69aa8a05ecc62f122b074cef20273a16967c93c82d60d20615160a3f521b38d29f2f19ac9d2463bf433e49d52d6e230d35ce57694
@@ -8,6 +8,13 @@ angular.module('NgSortable', [])
8
8
  scope.howToSortField(resource)
9
9
  sortableFunc = $parse(attributes.ngSortable)
10
10
  icon = element.find('i')
11
+ if Object.keys(attributes).includes('ngInitialSort')
12
+ scope.howToSortField = sortableFunc
13
+ if attributes.ngInitialSort == 'reverse'
14
+ scope.sortableReverse = true
15
+ icon.addClass('up')
16
+ else
17
+ icon.addClass('down')
11
18
  icon.bind 'click', ->
12
19
  element.parent().find('i').removeClass('up')
13
20
  element.parent().find('i').removeClass('down')
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.0.3.9"
2
+ VERSION = "0.0.4.0"
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.0.3.9
4
+ version: 0.0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Moody
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-16 00:00:00.000000000 Z
11
+ date: 2015-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler