istart-rails 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog.md CHANGED
@@ -1,6 +1,14 @@
1
1
  ### Dev
2
2
 
3
- [full changelog](http://github.com/ZenCocoon/istart-rails/compare/v0.0.5...master)
3
+ [full changelog](http://github.com/ZenCocoon/istart-rails/compare/v0.0.6...master)
4
+
5
+ ### 0.0.6 / 2012-04-22
6
+
7
+ [full changelog](http://github.com/ZenCocoon/istart-rails/compare/v0.0.5...v0.0.6)
8
+
9
+ * Enhancements
10
+ * Add datatables' sorting options by using classnames on columns' headers `sort-as-TYPE`
11
+ * Add datatables's LocalStorage to save last state
4
12
 
5
13
  ### 0.0.5 / 2012-04-17
6
14
 
data/README.md CHANGED
@@ -32,8 +32,9 @@ Within `app/assets/javascripts/application.js` add the following
32
32
 
33
33
  Within `app/assets/stylesheets/application.css` add the following
34
34
 
35
- *= require_self
35
+ *= require chosen (optional)
36
36
  *= require dataTables/jquery.dataTables.bootstrap (optional)
37
+ *= require_self
37
38
  ...
38
39
 
39
40
  ## License
@@ -27,5 +27,17 @@ jQuery ->
27
27
  $('.datatable').dataTable
28
28
  "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>"
29
29
  "sPaginationType": "bootstrap"
30
+ "bStateSave": true
31
+ "fnStateSave": (oSettings, oData) ->
32
+ localStorage.setItem 'DataTables_'+window.location.pathname, JSON.stringify(oData)
33
+ "fnStateLoad": (oSettings) ->
34
+ JSON.parse localStorage.getItem('DataTables_'+window.location.pathname)
35
+ "aoColumnDefs": [
36
+ { "bSortable": false, "aTargets": [ "sort-no" ] },,
37
+ { "sType": "string", "aTargets": [ "sort-as-string" ] }
38
+ { "sType": "numeric", "aTargets": [ "sort-as-numeric" ] },
39
+ { "sType": "date", "aTargets": [ "sort-as-date" ] },
40
+ { "sType": "dom", "aTargets": [ "sort-as-dom" ] }
41
+ ]
30
42
  "oLanguage":
31
43
  "sLengthMenu": "_MENU_ records per page"
@@ -1,5 +1,5 @@
1
1
  module Istart
2
2
  module Rails
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: istart-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-17 00:00:00.000000000Z
12
+ date: 2012-04-22 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jquery-rails
16
- requirement: &70330741675360 !ruby/object:Gem::Requirement
16
+ requirement: &70149333800380 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70330741675360
24
+ version_requirements: *70149333800380
25
25
  description: iStart-Rails is a set of common helpers to improve your app and speed
26
26
  up it's development
27
27
  email: