grapple 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/app/assets/images/grapple/arrow-down.png +0 -0
- data/app/assets/images/grapple/arrow-up.png +0 -0
- data/app/assets/images/grapple/loading-bar.gif +0 -0
- data/app/assets/images/grapple/minus.png +0 -0
- data/app/assets/images/grapple/plus.png +0 -0
- data/app/assets/javascripts/grapple-history.js +0 -0
- data/app/assets/javascripts/grapple-jquery.js +3 -1
- data/app/assets/javascripts/grapple.js +0 -0
- data/app/assets/stylesheets/grapple.css +0 -0
- data/config/locales/en.yml +0 -0
- data/lib/grapple.rb +0 -0
- data/lib/grapple/ajax_data_grid_builder.rb +0 -0
- data/lib/grapple/base_table_builder.rb +0 -0
- data/lib/grapple/components.rb +0 -0
- data/lib/grapple/components/actions.rb +0 -0
- data/lib/grapple/components/base_component.rb +0 -0
- data/lib/grapple/components/column_headings.rb +1 -1
- data/lib/grapple/components/html_body.rb +0 -0
- data/lib/grapple/components/html_caption.rb +0 -0
- data/lib/grapple/components/html_colgroup.rb +0 -0
- data/lib/grapple/components/html_component.rb +0 -0
- data/lib/grapple/components/html_footer.rb +0 -0
- data/lib/grapple/components/html_header.rb +0 -0
- data/lib/grapple/components/html_row.rb +0 -0
- data/lib/grapple/components/search_form.rb +0 -0
- data/lib/grapple/components/search_query_field.rb +0 -0
- data/lib/grapple/components/search_submit.rb +0 -0
- data/lib/grapple/components/toolbar.rb +0 -0
- data/lib/grapple/components/will_paginate_infobar.rb +0 -0
- data/lib/grapple/components/will_paginate_pagination.rb +0 -0
- data/lib/grapple/data_grid_builder.rb +0 -0
- data/lib/grapple/engine.rb +0 -0
- data/lib/grapple/helpers.rb +0 -0
- data/lib/grapple/helpers/table_helper.rb +0 -0
- data/lib/grapple/html_table_builder.rb +0 -0
- data/spec/builders/ajax_data_grid_builder_spec.rb +0 -0
- data/spec/builders/base_table_builder_spec.rb +0 -0
- data/spec/builders/data_grid_builder_spec.rb +0 -0
- data/spec/builders/html_table_builder_spec.rb +0 -0
- data/spec/components/actions_spec.rb +0 -0
- data/spec/components/column_headings_spec.rb +0 -0
- data/spec/components/html_body_spec.rb +0 -0
- data/spec/components/html_colgroup_spec.rb +0 -0
- data/spec/components/html_footer_spec.rb +0 -0
- data/spec/components/search_form_spec.rb +0 -0
- data/spec/components/toolbar_spec.rb +0 -0
- data/spec/components/will_paginate_spec.rb +0 -0
- data/spec/fixtures/schema.rb +0 -0
- data/spec/fixtures/users.yml +0 -0
- data/spec/spec_helper.rb +0 -0
- data/spec/support/test_environment.rb +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbc0df198de55cb09ba466cdfbe3819ae5439e8b
|
4
|
+
data.tar.gz: 325b37e40cd5af6b6dbf971b344d213303e386ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25b266b9af838eb66aed05186693d3aac8927c3572f1f7ced2d9ea2adce924fc149268132b8de8db9b8c82167e792a86ef5f33a376f671f520a3a3f66ec6bd5b
|
7
|
+
data.tar.gz: 8a03080dd54eba310e8d02887753d9c699a8126bd1d34523c0a2d32c78f644b322084d9d7bae23e8897478177175c74a323c5428196cc6a890a1aa030ec180a5
|
data/LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -81,6 +81,7 @@ GrappleTable.prototype = {
|
|
81
81
|
*
|
82
82
|
*/
|
83
83
|
loadTable: function(params) {
|
84
|
+
this.element.trigger('grapple:before_load');
|
84
85
|
this._showLoading();
|
85
86
|
|
86
87
|
if(this.history) {
|
@@ -96,7 +97,7 @@ GrappleTable.prototype = {
|
|
96
97
|
this.element.addClass(GrappleTable.CSS_LOADING);
|
97
98
|
|
98
99
|
// Set the position of the loading overlay based on the size of the table
|
99
|
-
var loadingBar = this.element.find('.' + GrappleTable.CSS_LOADING_OVERLAY)
|
100
|
+
var loadingBar = this.element.find('.' + GrappleTable.CSS_LOADING_OVERLAY);
|
100
101
|
loadingBar.width(this.table.width());
|
101
102
|
var barHeight = loadingBar.height() || 20;
|
102
103
|
var top = (this.table.height() / 2) - barHeight;
|
@@ -125,6 +126,7 @@ GrappleTable.prototype = {
|
|
125
126
|
self.element.html(data);
|
126
127
|
self.init();
|
127
128
|
self._hideLoading();
|
129
|
+
self.element.trigger('grapple:after_load');
|
128
130
|
},
|
129
131
|
error: function(a, b, c) {
|
130
132
|
// TODO: handle loading errors
|
File without changes
|
File without changes
|
data/config/locales/en.yml
CHANGED
File without changes
|
data/lib/grapple.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/lib/grapple/components.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/grapple/engine.rb
CHANGED
File without changes
|
data/lib/grapple/helpers.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/fixtures/schema.rb
CHANGED
File without changes
|
data/spec/fixtures/users.yml
CHANGED
File without changes
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grapple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edward Potocko
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2017-03-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: actionpack
|
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
205
|
version: '0'
|
206
206
|
requirements: []
|
207
207
|
rubyforge_project:
|
208
|
-
rubygems_version: 2.
|
208
|
+
rubygems_version: 2.5.1
|
209
209
|
signing_key:
|
210
210
|
specification_version: 4
|
211
211
|
summary: Customizable data grid for Rails
|