foo_table-rails 2.0.0 → 2.0.1

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: 7adcbcb5eb427cba3de6f79ec055054f0e35e042
4
- data.tar.gz: 3ec1d1dde2ddb74e6f0c939da4b93943633abf25
3
+ metadata.gz: 03b05aa8a185ac11fdc92efcc7881b35e82be708
4
+ data.tar.gz: 6d4707307e7b3f3bdb7d7cd7dfb1f37d39b60577
5
5
  SHA512:
6
- metadata.gz: 3589e6b2e2a2f9d7771f0eae08642531e96887b7498c22d52a852d8471281338edd45546efcc5167dff7650334ee392afb78c8ab5170d9f845e076b33551cc62
7
- data.tar.gz: d31d360084a1534df0f45a41394523e04bb20e7145fcb194b40801be950b4c58feedd60e99ca81046a42607bb859672d193b0858c078a44025559672536e8288
6
+ metadata.gz: 5f4f02c225c6cbbbf66a6cbbb55604098b2b3f0c5835702b79c8cb3326e66e2f3e454aec928abf39284035a05bb8e9fe99a387d02f59727fb254b7a5c43296b9
7
+ data.tar.gz: e19334e96c13c5e2849d02371c73cdaa83f4e12d7fc4f85e7775a1860ed81cdcb6983d14bb97ead076416c032762ba189480bbbd7db5f71825381ddfa51e5c58
@@ -1,5 +1,5 @@
1
1
  module FooTable
2
2
  module Rails
3
- VERSION = '2.0.0'
3
+ VERSION = '2.0.1'
4
4
  end
5
5
  end
@@ -1,15 +1,15 @@
1
1
  /*!
2
2
  * FooTable - Awesome Responsive Tables
3
- * Version : 2.0
3
+ * Version : 2.0.1
4
4
  * http://fooplugins.com/plugins/footable-jquery/
5
5
  *
6
6
  * Requires jQuery - http://jquery.com/
7
7
  *
8
- * Copyright 2012 Steven Usher & Brad Vincent
8
+ * Copyright 2013 Steven Usher & Brad Vincent
9
9
  * Released under the MIT license
10
10
  * You are free to use FooTable in commercial projects as long as this copyright header is left intact.
11
11
  *
12
- * Date: 23 Aug 2013
12
+ * Date: 31 Aug 2013
13
13
  */
14
14
  (function ($, w, undefined) {
15
15
  w.footable = {
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  addRowToggle: true,
34
- calculateWidthAndHeightOverride: null,
34
+ calculateWidthOverride: null,
35
35
  toggleSelector: ' > tbody > tr:not(.footable-row-detail)', //the selector to show/hide the detail row
36
36
  columnDataSelector: '> thead > tr:last-child > th, > thead > tr:last-child > td', //the selector used to find the column data in the thead
37
37
  detailSeparator: ':', //the seperator character used when building up the detail row
@@ -137,39 +137,55 @@
137
137
 
138
138
  plugins: {
139
139
  _validate: function (plugin) {
140
- ///<summary>Simple validation of the <paramref name="plugin"/> to make sure any members called by Foobox actually exist.</summary>
140
+ ///<summary>Simple validation of the <paramref name="plugin"/> to make sure any members called by FooTable actually exist.</summary>
141
141
  ///<param name="plugin">The object defining the plugin, this should implement a string property called "name" and a function called "init".</param>
142
142
 
143
- if (typeof plugin['name'] !== 'string') {
144
- if (w.footable.options.debug === true) console.error('Validation failed, plugin does not implement a string property called "name".', plugin);
143
+ if (!$.isFunction(plugin)) {
144
+ if (w.footable.options.debug === true) console.error('Validation failed, expected type "function", received type "{0}".', typeof plugin);
145
+ return false;
146
+ }
147
+ var p = new plugin();
148
+ if (typeof p['name'] !== 'string') {
149
+ if (w.footable.options.debug === true) console.error('Validation failed, plugin does not implement a string property called "name".', p);
145
150
  return false;
146
151
  }
147
- if (!$.isFunction(plugin['init'])) {
148
- if (w.footable.options.debug === true) console.error('Validation failed, plugin "' + plugin['name'] + '" does not implement a function called "init".', plugin);
152
+ if (!$.isFunction(p['init'])) {
153
+ if (w.footable.options.debug === true) console.error('Validation failed, plugin "' + p['name'] + '" does not implement a function called "init".', p);
149
154
  return false;
150
155
  }
151
- if (w.footable.options.debug === true) console.log('Validation succeeded for plugin "' + plugin['name'] + '".', plugin);
156
+ if (w.footable.options.debug === true) console.log('Validation succeeded for plugin "' + p['name'] + '".', p);
152
157
  return true;
153
158
  },
154
159
  registered: [], // An array containing all registered plugins.
155
160
  register: function (plugin, options) {
156
- ///<summary>Registers a <paramref name="plugin"/> and its default <paramref name="options"/> with Foobox.</summary>
161
+ ///<summary>Registers a <paramref name="plugin"/> and its default <paramref name="options"/> with FooTable.</summary>
157
162
  ///<param name="plugin">The plugin that should implement a string property called "name" and a function called "init".</param>
158
- ///<param name="options">The default options to merge with the Foobox's base options.</param>
163
+ ///<param name="options">The default options to merge with the FooTable's base options.</param>
159
164
 
160
165
  if (w.footable.plugins._validate(plugin)) {
161
166
  w.footable.plugins.registered.push(plugin);
162
- if (options !== undefined && typeof options === 'object') $.extend(true, w.footable.options, options);
163
- if (w.footable.options.debug === true) console.log('Plugin "' + plugin['name'] + '" has been registered with the Foobox.', plugin);
167
+ if (typeof options === 'object') $.extend(true, w.footable.options, options);
168
+ }
169
+ },
170
+ load: function(instance){
171
+ var loaded = [], registered, i;
172
+ for(i = 0; i < w.footable.plugins.registered.length; i++){
173
+ try {
174
+ registered = w.footable.plugins.registered[i];
175
+ loaded.push(new registered(instance));
176
+ } catch (err) {
177
+ if (w.footable.options.debug === true) console.error(err);
164
178
  }
179
+ }
180
+ return loaded;
165
181
  },
166
182
  init: function (instance) {
167
- ///<summary>Loops through all registered plugins and calls the "init" method supplying the current <paramref name="instance"/> of the Foobox as the first parameter.</summary>
168
- ///<param name="instance">The current instance of the Foobox that the plugin is being initialized for.</param>
183
+ ///<summary>Loops through all registered plugins and calls the "init" method supplying the current <paramref name="instance"/> of the FooTable as the first parameter.</summary>
184
+ ///<param name="instance">The current instance of the FooTable that the plugin is being initialized for.</param>
169
185
 
170
- for (var i = 0; i < w.footable.plugins.registered.length; i++) {
186
+ for (var i = 0; i < instance.plugins.length; i++) {
171
187
  try {
172
- w.footable.plugins.registered[i]['init'](instance);
188
+ instance.plugins[i]['init'](instance);
173
189
  } catch (err) {
174
190
  if (w.footable.options.debug === true) console.error(err);
175
191
  }
@@ -242,6 +258,7 @@
242
258
  ft.breakpoints = [];
243
259
  ft.breakpointNames = '';
244
260
  ft.columns = {};
261
+ ft.plugins = w.footable.plugins.load(ft);
245
262
 
246
263
  var opt = ft.options,
247
264
  cls = opt.classes,
@@ -258,11 +275,11 @@
258
275
  }
259
276
  };
260
277
 
261
- w.footable.plugins.init(ft);
262
-
263
278
  ft.init = function () {
264
279
  var $window = $(w), $table = $(ft.table);
265
280
 
281
+ w.footable.plugins.init(ft);
282
+
266
283
  if ($table.hasClass(cls.loaded)) {
267
284
  //already loaded FooTable for the table, so don't init again
268
285
  ft.raise(evt.alreadyInitialized);
@@ -393,7 +410,7 @@
393
410
  });
394
411
 
395
412
  $table.find(opt.toggleSelector).unbind('click.footable').bind('click.footable', function (e) {
396
- if ($table.is('.breakpoint') && $(e.target).is('td,.footable-toggle')) {
413
+ if ($table.is('.breakpoint') && $(e.target).is('td,.'+ cls.toggle)) {
397
414
  $(this).trigger(trg.toggleRow);
398
415
  }
399
416
  });
@@ -460,17 +477,12 @@
460
477
  return window.innerWidth || (document.body ? document.body.offsetWidth : 0);
461
478
  };
462
479
 
463
- ft.getViewportHeight = function () {
464
- return window.innerHeight || (document.body ? document.body.offsetHeight : 0);
465
- };
466
-
467
- ft.calculateWidthAndHeight = function ($table, info) {
468
- if (jQuery.isFunction(opt.calculateWidthAndHeightOverride)) {
469
- return opt.calculateWidthAndHeightOverride($table, info);
480
+ ft.calculateWidth = function ($table, info) {
481
+ if (jQuery.isFunction(opt.calculateWidthOverride)) {
482
+ return opt.calculateWidthOverride($table, info);
470
483
  }
471
484
  if (info.viewportWidth < info.width) info.width = info.viewportWidth;
472
- if (info.viewportHeight < info.height) info.height = info.viewportHeight;
473
-
485
+ if (info.parentWidth < info.width) info.width = info.parentWidth;
474
486
  return info;
475
487
  };
476
488
 
@@ -508,22 +520,18 @@
508
520
 
509
521
  var info = {
510
522
  'width': $table.width(), //the table width
511
- 'height': $table.height(), //the table height
512
523
  'viewportWidth': ft.getViewportWidth(), //the width of the viewport
513
- 'viewportHeight': ft.getViewportHeight(), //the width of the viewport
514
- 'orientation': null
524
+ 'parentWidth': $table.parent().width() //the width of the parent
515
525
  };
516
526
 
517
- info.orientation = info.viewportWidth > info.viewportHeight ? 'landscape' : 'portrait';
518
-
519
- info = ft.calculateWidthAndHeight($table, info);
527
+ info = ft.calculateWidth($table, info);
520
528
 
521
529
  var pinfo = $table.data('footable_info');
522
530
  $table.data('footable_info', info);
523
531
  ft.raise(evt.resizing, { 'old': pinfo, 'info': info });
524
532
 
525
533
  // This (if) statement is here purely to make sure events aren't raised twice as mobile safari seems to do
526
- if (!pinfo || ((pinfo && pinfo.width && pinfo.width !== info.width) || (pinfo && pinfo.height && pinfo.height !== info.height))) {
534
+ if (!pinfo || (pinfo && pinfo.width && pinfo.width !== info.width)) {
527
535
 
528
536
  var current = null, breakpoint;
529
537
  for (var i = 0; i < ft.breakpoints.length; i++) {
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * FooTable - Awesome Responsive Tables
3
- * Version : 0.5
4
- * http://themergency.com/footable
3
+ * Version : 2.0.1
4
+ * http://fooplugins.com/plugins/footable-jquery/
5
5
  *
6
6
  * Requires jQuery - http://jquery.com/
7
7
  *
8
- * Copyright 2012 Steven Usher & Brad Vincent
8
+ * Copyright 2013 Steven Usher & Brad Vincent
9
9
  * Released under the MIT license
10
10
  * You are free to use FooTable in commercial projects as long as this copyright header is left intact.
11
11
  *
12
- * Date: 22 Apr 2013
12
+ * Date: 31 Aug 2013
13
13
  */
14
- (function(e,t,undefined){function a(){var e=this;e.id=null,e.busy=!1,e.start=function(t,a){e.busy||(e.stop(),e.id=setTimeout(function(){t(),e.id=null,e.busy=!1},a),e.busy=!0)},e.stop=function(){null!==e.id&&(clearTimeout(e.id),e.id=null,e.busy=!1)}}function i(i,o,n){var r=this;r.id=n,r.table=i,r.options=o,r.breakpoints=[],r.breakpointNames="",r.columns={};var l=r.options,d=l.classes,s=l.events,u=l.triggers,f=0;return r.timers={resize:new a,register:function(e){return r.timers[e]=new a,r.timers[e]}},t.footable.plugins.init(r),r.init=function(){var a=e(t),i=e(r.table);if(i.hasClass(d.loaded))return r.raise(s.alreadyInitialized),undefined;r.raise(s.initializing),i.addClass(d.loading),i.find(l.columnDataSelector).each(function(){var e=r.getColumnData(this);r.columns[e.index]=e});for(var o in l.breakpoints)r.breakpoints.push({name:o,width:l.breakpoints[o]}),r.breakpointNames+=o+" ";r.breakpoints.sort(function(e,t){return e.width-t.width}),i.bind(u.initialize,function(){i.removeData("footable_info"),i.data("breakpoint",""),i.trigger(u.resize),i.removeClass(d.loading),i.addClass(d.loaded).addClass(d.main),r.raise(s.initialized)}).bind(u.redraw,function(){r.redraw()}).bind(u.resize,function(){r.resize()}).bind(u.expandFirstRow,function(){i.find(l.toggleSelector).first().not("."+d.detailShow).trigger(u.toggleRow)}),i.trigger(u.initialize),a.bind("resize.footable",function(){r.timers.resize.stop(),r.timers.resize.start(function(){r.raise(u.resize)},l.delay)})},r.addRowToggle=function(){if(l.addRowToggle){var t=e(r.table),a=!1;t.find("span."+d.toggle).remove();for(var i in r.columns){var o=r.columns[i];if(o.toggle){a=!0;var n="> tbody > tr:not(."+d.detail+") > td:nth-child("+(parseInt(o.index,10)+1)+")";return t.find(n).not("."+d.detailCell).prepend(e("<span />").addClass(d.toggle)),undefined}}a||t.find("> tbody > tr:not(."+d.detail+") > td:first-child").not("."+d.detailCell).prepend(e("<span />").addClass(d.toggle))}},r.setColumnClasses=function(){$table=e(r.table);for(var t in r.columns){var a=r.columns[t];if(null!==a.className){var i="",o=!0;e.each(a.matches,function(e,t){o||(i+=", "),i+="> tbody > tr:not(."+d.detail+") > td:nth-child("+(parseInt(t,10)+1)+")",o=!1}),$table.find(i).not("."+d.detailCell).addClass(a.className)}}},r.bindToggleSelectors=function(){var t=e(r.table);r.hasAnyBreakpointColumn()&&(t.find(l.toggleSelector).unbind(u.toggleRow).bind(u.toggleRow,function(){var t=e(this).is("tr")?e(this):e(this).parents("tr:first");r.toggleDetail(t.get(0))}),t.find(l.toggleSelector).unbind("click.footable").bind("click.footable",function(a){t.is(".breakpoint")&&e(a.target).is("td,.footable-toggle")&&e(this).trigger(u.toggleRow)}))},r.parse=function(e,t){var a=l.parsers[t.type]||l.parsers.alpha;return a(e)},r.getColumnData=function(t){var a=e(t),i=a.data("hide"),o=a.index();i=i||"",i=i.split(",");var n={index:o,hide:{},type:a.data("type")||"alpha",name:a.data("name")||e.trim(a.text()),ignore:a.data("ignore")||!1,toggle:a.data("toggle")||!1,className:a.data("class")||null,matches:[],names:{},group:a.data("group")||null,groupName:null};if(null!==n.group){var d=e(r.table).find('> thead > tr.footable-group-row > th[data-group="'+n.group+'"], > thead > tr.footable-group-row > td[data-group="'+n.group+'"]').first();n.groupName=r.parse(d,{type:"alpha"})}var u=parseInt(a.prev().attr("colspan")||0,10);f+=u>1?u-1:0;var h=parseInt(a.attr("colspan")||0,10),p=n.index+f;if(h>1){var g=a.data("names");g=g||"",g=g.split(",");for(var c=0;h>c;c++)n.matches.push(c+p),g.length>c&&(n.names[c+p]=g[c])}else n.matches.push(p);n.hide["default"]="all"===a.data("hide")||e.inArray("default",i)>=0;var b=!1;for(var m in l.breakpoints)n.hide[m]="all"===a.data("hide")||e.inArray(m,i)>=0,b=b||n.hide[m];n.hasBreakpoint=b;var v=r.raise(s.columnData,{column:{data:n,th:t}});return v.column.data},r.getViewportWidth=function(){return window.innerWidth||(document.body?document.body.offsetWidth:0)},r.getViewportHeight=function(){return window.innerHeight||(document.body?document.body.offsetHeight:0)},r.calculateWidthAndHeight=function(e,t){return jQuery.isFunction(l.calculateWidthAndHeightOverride)?l.calculateWidthAndHeightOverride(e,t):(t.viewportWidth<t.width&&(t.width=t.viewportWidth),t.viewportHeight<t.height&&(t.height=t.viewportHeight),t)},r.hasBreakpointColumn=function(e){for(var t in r.columns)if(r.columns[t].hide[e]){if(r.columns[t].ignore)continue;return!0}return!1},r.hasAnyBreakpointColumn=function(){for(var e in r.columns)if(r.columns[e].hasBreakpoint)return!0;return!1},r.resize=function(){var t=e(r.table);if(t.is(":visible")&&r.hasAnyBreakpointColumn()){var a={width:t.width(),height:t.height(),viewportWidth:r.getViewportWidth(),viewportHeight:r.getViewportHeight(),orientation:null};a.orientation=a.viewportWidth>a.viewportHeight?"landscape":"portrait",a=r.calculateWidthAndHeight(t,a);var i=t.data("footable_info");if(t.data("footable_info",a),r.raise(s.resizing,{old:i,info:a}),!i||i&&i.width&&i.width!==a.width||i&&i.height&&i.height!==a.height){for(var o,n=null,l=0;r.breakpoints.length>l;l++)if(o=r.breakpoints[l],o&&o.width&&a.width<=o.width){n=o;break}var d=null===n?"default":n.name,f=r.hasBreakpointColumn(d),h=t.data("breakpoint");t.data("breakpoint",d).removeClass("default breakpoint").removeClass(r.breakpointNames).addClass(d+(f?" breakpoint":"")),d!==h&&(t.trigger(u.redraw),r.raise(s.breakpoint,{breakpoint:d,info:a}))}r.raise(s.resized,{old:i,info:a})}},r.redraw=function(){r.addRowToggle(),r.bindToggleSelectors(),r.setColumnClasses();var t=e(r.table),a=t.data("breakpoint"),i=r.hasBreakpointColumn(a);t.find("> tbody > tr:not(."+d.detail+")").data("detail_created",!1).end().find("> thead > tr:last-child > th").each(function(){var i=r.columns[e(this).index()],o="",n=!0;e.each(i.matches,function(e,t){n||(o+=", ");var a=t+1;o+="> tbody > tr:not(."+d.detail+") > td:nth-child("+a+")",o+=", > tfoot > tr:not(."+d.detail+") > td:nth-child("+a+")",o+=", > colgroup > col:nth-child("+a+")",n=!1}),o+=', > thead > tr[data-group-row="true"] > th[data-group="'+i.group+'"]';var l=t.find(o).add(this);if(i.hide[a]===!1?l.show():l.hide(),1===t.find("> thead > tr.footable-group-row").length){var s=t.find('> thead > tr:last-child > th[data-group="'+i.group+'"]:visible, > thead > tr:last-child > th[data-group="'+i.group+'"]:visible'),u=t.find('> thead > tr.footable-group-row > th[data-group="'+i.group+'"], > thead > tr.footable-group-row > td[data-group="'+i.group+'"]'),f=0;e.each(s,function(){f+=parseInt(e(this).attr("colspan")||1,10)}),f>0?u.attr("colspan",f).show():u.hide()}}).end().find("> tbody > tr."+d.detailShow).each(function(){r.createOrUpdateDetailRow(this)}),t.find("> tbody > tr."+d.detailShow+":visible").each(function(){var t=e(this).next();t.hasClass(d.detail)&&(i?t.show():t.hide())}),t.find("> thead > tr > th.footable-last-column, > tbody > tr > td.footable-last-column").removeClass("footable-last-column"),t.find("> thead > tr > th.footable-first-column, > tbody > tr > td.footable-first-column").removeClass("footable-first-column"),t.find("> thead > tr, > tbody > tr").find("> th:visible:last, > td:visible:last").addClass("footable-last-column").end().find("> th:visible:first, > td:visible:first").addClass("footable-first-column"),r.raise(s.redrawn)},r.toggleDetail=function(t){var a=t.jquery?t:e(t),i=a.next();a.hasClass(d.detailShow)?(a.removeClass(d.detailShow),i.hasClass(d.detail)&&i.hide(),r.raise(s.rowCollapsed,{row:a[0]})):(r.createOrUpdateDetailRow(a[0]),a.addClass(d.detailShow),a.next().show(),r.raise(s.rowExpanded,{row:a[0]}))},r.removeRow=function(t){var a=t.jquery?t:e(t);a.hasClass(d.detail)&&(a=a.prev());var i=a.next();a.data("detail_created")===!0&&i.remove(),a.remove(),r.raise(s.rowRemoved)},r.appendRow=function(t){var a=t.jquery?t:e(t);e(r.table).find("tbody").append(a),r.redraw()},r.getColumnFromTdIndex=function(t){var a=null;for(var i in r.columns)if(e.inArray(t,r.columns[i].matches)>=0){a=r.columns[i];break}return a},r.createOrUpdateDetailRow=function(t){var a,i=e(t),o=i.next(),n=[];if(i.data("detail_created")===!0)return!0;if(i.is(":hidden"))return!1;if(r.raise(s.rowDetailUpdating,{row:i,detail:o}),i.find("> td:hidden").each(function(){var t=e(this).index(),a=r.getColumnFromTdIndex(t),i=a.name;return a.ignore===!0?!0:(t in a.names&&(i=a.names[t]),n.push({name:i,value:r.parse(this,a),display:e.trim(e(this).html()),group:a.group,groupName:a.groupName}),!0)}),0===n.length)return!1;var u=i.find("> td:visible").length,f=o.hasClass(d.detail);return f||(o=e('<tr class="'+d.detail+'"><td class="'+d.detailCell+'"><div class="'+d.detailInner+'"></div></td></tr>'),i.after(o)),o.find("> td:first").attr("colspan",u),a=o.find("."+d.detailInner).empty(),l.createDetail(a,n,l.createGroupedDetail,l.detailSeparator,d),i.data("detail_created",!0),r.raise(s.rowDetailUpdated,{row:i,detail:o}),!f},r.raise=function(t,a){r.options.debug===!0&&e.isFunction(r.options.log)&&r.options.log(t,"event"),a=a||{};var i={ft:r};e.extend(!0,i,a);var o=e.Event(t,i);return o.ft||e.extend(!0,o,i),e(r.table).trigger(o),o},r.init(),r}t.footable={options:{delay:100,breakpoints:{phone:480,tablet:1024},parsers:{alpha:function(t){return e(t).data("value")||e.trim(e(t).text())},numeric:function(t){var a=e(t).data("value")||e(t).text().replace(/[^0-9.\-]/g,"");return a=parseFloat(a),isNaN(a)&&(a=0),a}},addRowToggle:!0,calculateWidthAndHeightOverride:null,toggleSelector:" > tbody > tr:not(.footable-row-detail)",columnDataSelector:"> thead > tr:last-child > th, > thead > tr:last-child > td",detailSeparator:":",createGroupedDetail:function(e){for(var t={_none:{name:null,data:[]}},a=0;e.length>a;a++){var i=e[a].group;null!==i?(i in t||(t[i]={name:e[a].groupName||e[a].group,data:[]}),t[i].data.push(e[a])):t._none.data.push(e[a])}return t},createDetail:function(e,t,a,i,o){var n=a(t);for(var r in n)if(0!==n[r].data.length){"_none"!==r&&e.append('<div class="'+o.detailInnerGroup+'">'+n[r].name+"</div>");for(var l=0;n[r].data.length>l;l++){var d=n[r].data[l].name?i:"";e.append('<div class="'+o.detailInnerRow+'"><div class="'+o.detailInnerName+'">'+n[r].data[l].name+d+'</div><div class="'+o.detailInnerValue+'">'+n[r].data[l].display+"</div></div>")}}},classes:{main:"footable",loading:"footable-loading",loaded:"footable-loaded",toggle:"footable-toggle",detail:"footable-row-detail",detailCell:"footable-row-detail-cell",detailInner:"footable-row-detail-inner",detailInnerRow:"footable-row-detail-row",detailInnerGroup:"footable-row-detail-group",detailInnerName:"footable-row-detail-name",detailInnerValue:"footable-row-detail-value",detailShow:"footable-detail-show"},triggers:{initialize:"footable_initialize",resize:"footable_resize",redraw:"footable_redraw",toggleRow:"footable_toggle_row",expandFirstRow:"footable_expand_first_row"},events:{alreadyInitialized:"footable_already_initialized",initializing:"footable_initializing",initialized:"footable_initialized",resizing:"footable_resizing",resized:"footable_resized",redrawn:"footable_redrawn",breakpoint:"footable_breakpoint",columnData:"footable_column_data",rowDetailUpdating:"footable_row_detail_updating",rowDetailUpdated:"footable_row_detail_updated",rowCollapsed:"footable_row_collapsed",rowExpanded:"footable_row_expanded",rowRemoved:"footable_row_removed"},debug:!1,log:null},version:{major:0,minor:5,toString:function(){return t.footable.version.major+"."+t.footable.version.minor},parse:function(e){return version=/(\d+)\.?(\d+)?\.?(\d+)?/.exec(e),{major:parseInt(version[1],10)||0,minor:parseInt(version[2],10)||0,patch:parseInt(version[3],10)||0}}},plugins:{_validate:function(a){return"string"!=typeof a.name?(t.footable.options.debug===!0&&console.error('Validation failed, plugin does not implement a string property called "name".',a),!1):e.isFunction(a.init)?(t.footable.options.debug===!0&&console.log('Validation succeeded for plugin "'+a.name+'".',a),!0):(t.footable.options.debug===!0&&console.error('Validation failed, plugin "'+a.name+'" does not implement a function called "init".',a),!1)},registered:[],register:function(a,i){t.footable.plugins._validate(a)&&(t.footable.plugins.registered.push(a),i!==undefined&&"object"==typeof i&&e.extend(!0,t.footable.options,i),t.footable.options.debug===!0&&console.log('Plugin "'+a.name+'" has been registered with the Foobox.',a))},init:function(e){for(var a=0;t.footable.plugins.registered.length>a;a++)try{t.footable.plugins.registered[a].init(e)}catch(i){t.footable.options.debug===!0&&console.error(i)}}}};var o=0;e.fn.footable=function(a){a=a||{};var n=e.extend(!0,{},t.footable.options,a);return this.each(function(){o++;var t=new i(this,n,o);e(this).data("footable",t)})}})(jQuery,window);
14
+ (function(e,t){function a(){var e=this;e.id=null,e.busy=!1,e.start=function(t,a){e.busy||(e.stop(),e.id=setTimeout(function(){t(),e.id=null,e.busy=!1},a),e.busy=!0)},e.stop=function(){null!==e.id&&(clearTimeout(e.id),e.id=null,e.busy=!1)}}function o(o,i,n){var r=this;r.id=n,r.table=o,r.options=i,r.breakpoints=[],r.breakpointNames="",r.columns={},r.plugins=t.footable.plugins.load(r);var l=r.options,d=l.classes,s=l.events,u=l.triggers,f=0;return r.timers={resize:new a,register:function(e){return r.timers[e]=new a,r.timers[e]}},r.init=function(){var a=e(t),o=e(r.table);if(t.footable.plugins.init(r),o.hasClass(d.loaded))return r.raise(s.alreadyInitialized),undefined;r.raise(s.initializing),o.addClass(d.loading),o.find(l.columnDataSelector).each(function(){var e=r.getColumnData(this);r.columns[e.index]=e});for(var i in l.breakpoints)r.breakpoints.push({name:i,width:l.breakpoints[i]}),r.breakpointNames+=i+" ";r.breakpoints.sort(function(e,t){return e.width-t.width}),o.bind(u.initialize,function(){o.removeData("footable_info"),o.data("breakpoint",""),o.trigger(u.resize),o.removeClass(d.loading),o.addClass(d.loaded).addClass(d.main),r.raise(s.initialized)}).bind(u.redraw,function(){r.redraw()}).bind(u.resize,function(){r.resize()}).bind(u.expandFirstRow,function(){o.find(l.toggleSelector).first().not("."+d.detailShow).trigger(u.toggleRow)}),o.trigger(u.initialize),a.bind("resize.footable",function(){r.timers.resize.stop(),r.timers.resize.start(function(){r.raise(u.resize)},l.delay)})},r.addRowToggle=function(){if(l.addRowToggle){var t=e(r.table),a=!1;t.find("span."+d.toggle).remove();for(var o in r.columns){var i=r.columns[o];if(i.toggle){a=!0;var n="> tbody > tr:not(."+d.detail+",."+d.disabled+") > td:nth-child("+(parseInt(i.index,10)+1)+")";return t.find(n).not("."+d.detailCell).prepend(e("<span />").addClass(d.toggle)),undefined}}a||t.find("> tbody > tr:not(."+d.detail+",."+d.disabled+") > td:first-child").not("."+d.detailCell).prepend(e("<span />").addClass(d.toggle))}},r.setColumnClasses=function(){$table=e(r.table);for(var t in r.columns){var a=r.columns[t];if(null!==a.className){var o="",i=!0;e.each(a.matches,function(e,t){i||(o+=", "),o+="> tbody > tr:not(."+d.detail+") > td:nth-child("+(parseInt(t,10)+1)+")",i=!1}),$table.find(o).not("."+d.detailCell).addClass(a.className)}}},r.bindToggleSelectors=function(){var t=e(r.table);r.hasAnyBreakpointColumn()&&(t.find(l.toggleSelector).unbind(u.toggleRow).bind(u.toggleRow,function(){var t=e(this).is("tr")?e(this):e(this).parents("tr:first");r.toggleDetail(t.get(0))}),t.find(l.toggleSelector).unbind("click.footable").bind("click.footable",function(a){t.is(".breakpoint")&&e(a.target).is("td,."+d.toggle)&&e(this).trigger(u.toggleRow)}))},r.parse=function(e,t){var a=l.parsers[t.type]||l.parsers.alpha;return a(e)},r.getColumnData=function(t){var a=e(t),o=a.data("hide"),i=a.index();o=o||"",o=jQuery.map(o.split(","),function(e){return jQuery.trim(e)});var n={index:i,hide:{},type:a.data("type")||"alpha",name:a.data("name")||e.trim(a.text()),ignore:a.data("ignore")||!1,toggle:a.data("toggle")||!1,className:a.data("class")||null,matches:[],names:{},group:a.data("group")||null,groupName:null};if(null!==n.group){var d=e(r.table).find('> thead > tr.footable-group-row > th[data-group="'+n.group+'"], > thead > tr.footable-group-row > td[data-group="'+n.group+'"]').first();n.groupName=r.parse(d,{type:"alpha"})}var u=parseInt(a.prev().attr("colspan")||0,10);f+=u>1?u-1:0;var p=parseInt(a.attr("colspan")||0,10),c=n.index+f;if(p>1){var g=a.data("names");g=g||"",g=g.split(",");for(var h=0;p>h;h++)n.matches.push(h+c),g.length>h&&(n.names[h+c]=g[h])}else n.matches.push(c);n.hide["default"]="all"===a.data("hide")||e.inArray("default",o)>=0;var b=!1;for(var m in l.breakpoints)n.hide[m]="all"===a.data("hide")||e.inArray(m,o)>=0,b=b||n.hide[m];n.hasBreakpoint=b;var v=r.raise(s.columnData,{column:{data:n,th:t}});return v.column.data},r.getViewportWidth=function(){return window.innerWidth||(document.body?document.body.offsetWidth:0)},r.calculateWidth=function(e,t){return jQuery.isFunction(l.calculateWidthOverride)?l.calculateWidthOverride(e,t):(t.viewportWidth<t.width&&(t.width=t.viewportWidth),t.parentWidth<t.width&&(t.width=t.parentWidth),t)},r.hasBreakpointColumn=function(e){for(var t in r.columns)if(r.columns[t].hide[e]){if(r.columns[t].ignore)continue;return!0}return!1},r.hasAnyBreakpointColumn=function(){for(var e in r.columns)if(r.columns[e].hasBreakpoint)return!0;return!1},r.resize=function(){var t=e(r.table);if(t.is(":visible")&&r.hasAnyBreakpointColumn()){var a={width:t.width(),viewportWidth:r.getViewportWidth(),parentWidth:t.parent().width()};a=r.calculateWidth(t,a);var o=t.data("footable_info");if(t.data("footable_info",a),r.raise(s.resizing,{old:o,info:a}),!o||o&&o.width&&o.width!==a.width){for(var i,n=null,l=0;r.breakpoints.length>l;l++)if(i=r.breakpoints[l],i&&i.width&&a.width<=i.width){n=i;break}var d=null===n?"default":n.name,f=r.hasBreakpointColumn(d),p=t.data("breakpoint");t.data("breakpoint",d).removeClass("default breakpoint").removeClass(r.breakpointNames).addClass(d+(f?" breakpoint":"")),d!==p&&(t.trigger(u.redraw),r.raise(s.breakpoint,{breakpoint:d,info:a}))}r.raise(s.resized,{old:o,info:a})}},r.redraw=function(){r.addRowToggle(),r.bindToggleSelectors(),r.setColumnClasses();var t=e(r.table),a=t.data("breakpoint"),o=r.hasBreakpointColumn(a);t.find("> tbody > tr:not(."+d.detail+")").data("detail_created",!1).end().find("> thead > tr:last-child > th").each(function(){var o=r.columns[e(this).index()],i="",n=!0;e.each(o.matches,function(e,t){n||(i+=", ");var a=t+1;i+="> tbody > tr:not(."+d.detail+") > td:nth-child("+a+")",i+=", > tfoot > tr:not(."+d.detail+") > td:nth-child("+a+")",i+=", > colgroup > col:nth-child("+a+")",n=!1}),i+=', > thead > tr[data-group-row="true"] > th[data-group="'+o.group+'"]';var l=t.find(i).add(this);if(o.hide[a]===!1?l.show():l.hide(),1===t.find("> thead > tr.footable-group-row").length){var s=t.find('> thead > tr:last-child > th[data-group="'+o.group+'"]:visible, > thead > tr:last-child > th[data-group="'+o.group+'"]:visible'),u=t.find('> thead > tr.footable-group-row > th[data-group="'+o.group+'"], > thead > tr.footable-group-row > td[data-group="'+o.group+'"]'),f=0;e.each(s,function(){f+=parseInt(e(this).attr("colspan")||1,10)}),f>0?u.attr("colspan",f).show():u.hide()}}).end().find("> tbody > tr."+d.detailShow).each(function(){r.createOrUpdateDetailRow(this)}),t.find("> tbody > tr."+d.detailShow+":visible").each(function(){var t=e(this).next();t.hasClass(d.detail)&&(o?t.show():t.hide())}),t.find("> thead > tr > th.footable-last-column, > tbody > tr > td.footable-last-column").removeClass("footable-last-column"),t.find("> thead > tr > th.footable-first-column, > tbody > tr > td.footable-first-column").removeClass("footable-first-column"),t.find("> thead > tr, > tbody > tr").find("> th:visible:last, > td:visible:last").addClass("footable-last-column").end().find("> th:visible:first, > td:visible:first").addClass("footable-first-column"),r.raise(s.redrawn)},r.toggleDetail=function(t){var a=t.jquery?t:e(t),o=a.next();a.hasClass(d.detailShow)?(a.removeClass(d.detailShow),o.hasClass(d.detail)&&o.hide(),r.raise(s.rowCollapsed,{row:a[0]})):(r.createOrUpdateDetailRow(a[0]),a.addClass(d.detailShow),a.next().show(),r.raise(s.rowExpanded,{row:a[0]}))},r.removeRow=function(t){var a=t.jquery?t:e(t);a.hasClass(d.detail)&&(a=a.prev());var o=a.next();a.data("detail_created")===!0&&o.remove(),a.remove(),r.raise(s.rowRemoved)},r.appendRow=function(t){var a=t.jquery?t:e(t);e(r.table).find("tbody").append(a),r.redraw()},r.getColumnFromTdIndex=function(t){var a=null;for(var o in r.columns)if(e.inArray(t,r.columns[o].matches)>=0){a=r.columns[o];break}return a},r.createOrUpdateDetailRow=function(t){var a,o=e(t),i=o.next(),n=[];if(o.data("detail_created")===!0)return!0;if(o.is(":hidden"))return!1;if(r.raise(s.rowDetailUpdating,{row:o,detail:i}),o.find("> td:hidden").each(function(){var t=e(this).index(),a=r.getColumnFromTdIndex(t),o=a.name;return a.ignore===!0?!0:(t in a.names&&(o=a.names[t]),n.push({name:o,value:r.parse(this,a),display:e.trim(e(this).html()),group:a.group,groupName:a.groupName}),!0)}),0===n.length)return!1;var u=o.find("> td:visible").length,f=i.hasClass(d.detail);return f||(i=e('<tr class="'+d.detail+'"><td class="'+d.detailCell+'"><div class="'+d.detailInner+'"></div></td></tr>'),o.after(i)),i.find("> td:first").attr("colspan",u),a=i.find("."+d.detailInner).empty(),l.createDetail(a,n,l.createGroupedDetail,l.detailSeparator,d),o.data("detail_created",!0),r.raise(s.rowDetailUpdated,{row:o,detail:i}),!f},r.raise=function(t,a){r.options.debug===!0&&e.isFunction(r.options.log)&&r.options.log(t,"event"),a=a||{};var o={ft:r};e.extend(!0,o,a);var i=e.Event(t,o);return i.ft||e.extend(!0,i,o),e(r.table).trigger(i),i},r.init(),r}t.footable={options:{delay:100,breakpoints:{phone:480,tablet:1024},parsers:{alpha:function(t){return e(t).data("value")||e.trim(e(t).text())},numeric:function(t){var a=e(t).data("value")||e(t).text().replace(/[^0-9.\-]/g,"");return a=parseFloat(a),isNaN(a)&&(a=0),a}},addRowToggle:!0,calculateWidthOverride:null,toggleSelector:" > tbody > tr:not(.footable-row-detail)",columnDataSelector:"> thead > tr:last-child > th, > thead > tr:last-child > td",detailSeparator:":",createGroupedDetail:function(e){for(var t={_none:{name:null,data:[]}},a=0;e.length>a;a++){var o=e[a].group;null!==o?(o in t||(t[o]={name:e[a].groupName||e[a].group,data:[]}),t[o].data.push(e[a])):t._none.data.push(e[a])}return t},createDetail:function(e,t,a,o,i){var n=a(t);for(var r in n)if(0!==n[r].data.length){"_none"!==r&&e.append('<div class="'+i.detailInnerGroup+'">'+n[r].name+"</div>");for(var l=0;n[r].data.length>l;l++){var d=n[r].data[l].name?o:"";e.append('<div class="'+i.detailInnerRow+'"><div class="'+i.detailInnerName+'">'+n[r].data[l].name+d+'</div><div class="'+i.detailInnerValue+'">'+n[r].data[l].display+"</div></div>")}}},classes:{main:"footable",loading:"footable-loading",loaded:"footable-loaded",toggle:"footable-toggle",disabled:"footable-disabled",detail:"footable-row-detail",detailCell:"footable-row-detail-cell",detailInner:"footable-row-detail-inner",detailInnerRow:"footable-row-detail-row",detailInnerGroup:"footable-row-detail-group",detailInnerName:"footable-row-detail-name",detailInnerValue:"footable-row-detail-value",detailShow:"footable-detail-show"},triggers:{initialize:"footable_initialize",resize:"footable_resize",redraw:"footable_redraw",toggleRow:"footable_toggle_row",expandFirstRow:"footable_expand_first_row"},events:{alreadyInitialized:"footable_already_initialized",initializing:"footable_initializing",initialized:"footable_initialized",resizing:"footable_resizing",resized:"footable_resized",redrawn:"footable_redrawn",breakpoint:"footable_breakpoint",columnData:"footable_column_data",rowDetailUpdating:"footable_row_detail_updating",rowDetailUpdated:"footable_row_detail_updated",rowCollapsed:"footable_row_collapsed",rowExpanded:"footable_row_expanded",rowRemoved:"footable_row_removed"},debug:!1,log:null},version:{major:0,minor:5,toString:function(){return t.footable.version.major+"."+t.footable.version.minor},parse:function(e){return version=/(\d+)\.?(\d+)?\.?(\d+)?/.exec(e),{major:parseInt(version[1],10)||0,minor:parseInt(version[2],10)||0,patch:parseInt(version[3],10)||0}}},plugins:{_validate:function(a){if(!e.isFunction(a))return t.footable.options.debug===!0&&console.error('Validation failed, expected type "function", received type "{0}".',typeof a),!1;var o=new a;return"string"!=typeof o.name?(t.footable.options.debug===!0&&console.error('Validation failed, plugin does not implement a string property called "name".',o),!1):e.isFunction(o.init)?(t.footable.options.debug===!0&&console.log('Validation succeeded for plugin "'+o.name+'".',o),!0):(t.footable.options.debug===!0&&console.error('Validation failed, plugin "'+o.name+'" does not implement a function called "init".',o),!1)},registered:[],register:function(a,o){t.footable.plugins._validate(a)&&(t.footable.plugins.registered.push(a),"object"==typeof o&&e.extend(!0,t.footable.options,o))},load:function(e){var a,o,i=[];for(o=0;t.footable.plugins.registered.length>o;o++)try{a=t.footable.plugins.registered[o],i.push(new a(e))}catch(n){t.footable.options.debug===!0&&console.error(n)}return i},init:function(e){for(var a=0;e.plugins.length>a;a++)try{e.plugins[a].init(e)}catch(o){t.footable.options.debug===!0&&console.error(o)}}}};var i=0;e.fn.footable=function(a){a=a||{};var n=e.extend(!0,{},t.footable.options,a);return this.each(function(){i++;var t=new o(this,n,i);e(this).data("footable",t)})}})(jQuery,window);
@@ -2,23 +2,6 @@
2
2
  if (w.footable === undefined || w.footable === null)
3
3
  throw new Error('Please check and make sure footable.js is included in the page and is loaded prior to this script.');
4
4
 
5
- var jQversion = w.footable.version.parse($.fn.jquery);
6
- if (jQversion.major === 1 && jQversion.minor < 8) { // For older versions of jQuery, anything below 1.8
7
- $.expr[':'].ftcontains = function (a, i, m) {
8
- return $(a).text().toUpperCase().indexOf(m[3].toUpperCase()) >= 0;
9
- };
10
- } else { // For jQuery 1.8 and above
11
- $.expr[':'].ftcontains = $.expr.createPseudo(function (arg) {
12
- return function (elem) {
13
- var text = $(elem).find('td').text();
14
- var data = $(elem).find('td[data-value]').each(function () {
15
- text += $(this).data('value');
16
- });
17
- return text.toUpperCase().indexOf(arg.toUpperCase()) >= 0;
18
- };
19
- });
20
- }
21
-
22
5
  var defaults = {
23
6
  filter: {
24
7
  enabled: true,
@@ -30,10 +13,12 @@
30
13
  var $t = $(this),
31
14
  $table = $t.parents('table:first'),
32
15
  filter = $table.data('current-filter').toUpperCase(),
33
- text = $t.find('td').text(),
34
- data = $t.find('td[data-value]').each(function () {
16
+ text = $t.find('td').text();
17
+ if (!$table.data('filter-text-only')) {
18
+ $t.find('td[data-value]').each(function () {
35
19
  text += $(this).data('value');
36
20
  });
21
+ }
37
22
  return text.toUpperCase().indexOf(filter) >= 0;
38
23
  }
39
24
  }
@@ -45,6 +30,7 @@
45
30
  p.init = function (ft) {
46
31
  p.footable = ft;
47
32
  if (ft.options.filter.enabled === true) {
33
+ if ($(ft.table).data('filter') === false) return;
48
34
  ft.timers.register('filter');
49
35
  $(ft.table).bind({
50
36
  'footable_initialized': function (e) {
@@ -100,23 +86,22 @@
100
86
  minimum = $table.data('filter-minimum') || ft.options.filter.minimum,
101
87
  clear = !filterString;
102
88
 
103
- if (filterString && filterString.length < minimum) {
104
- return; //if we do not have the minimum chars then do nothing
105
- }
106
-
107
89
  //raise a pre-filter event so that we can cancel the filtering if needed
108
90
  var event = ft.raise('footable_filtering', { filter: filterString, clear: clear });
109
91
  if (event && event.result === false) return;
92
+ if (event.filter && event.filter.length < minimum) {
93
+ return; //if we do not have the minimum chars then do nothing
94
+ }
110
95
 
111
- if (clear) {
96
+ if (event.clear) {
112
97
  p.clearFilter();
113
98
  } else {
114
- var filters = filterString.split(' ');
99
+ var filters = event.filter.split(' ');
115
100
 
116
101
  $table.find('> tbody > tr').hide().addClass('footable-filtered');
117
102
  var rows = $table.find('> tbody > tr:not(.footable-row-detail)');
118
103
  $.each(filters, function (i, f) {
119
- if (f && f.length) {
104
+ if (f && f.length > 0) {
120
105
  $table.data('current-filter', f);
121
106
  rows = rows.filter(ft.options.filter.filterFunction);
122
107
  }
@@ -125,8 +110,8 @@
125
110
  p.showRow(this, ft);
126
111
  $(this).removeClass('footable-filtered');
127
112
  });
128
- $table.data('filter-string', filterString);
129
- ft.raise('footable_filtered', { filter: filterString, clear: false });
113
+ $table.data('filter-string', event.filter);
114
+ ft.raise('footable_filtered', { filter: event.filter, clear: false });
130
115
  }
131
116
  };
132
117
 
@@ -152,6 +137,6 @@
152
137
  };
153
138
  }
154
139
 
155
- w.footable.plugins.register(new Filter(), defaults);
140
+ w.footable.plugins.register(Filter, defaults);
156
141
 
157
142
  })(jQuery, window);
@@ -1,14 +1 @@
1
- /*!
2
- * FooTable - Awesome Responsive Tables
3
- * Version : 0.5
4
- * http://themergency.com/footable
5
- *
6
- * Requires jQuery - http://jquery.com/
7
- *
8
- * Copyright 2012 Steven Usher & Brad Vincent
9
- * Released under the MIT license
10
- * You are free to use FooTable in commercial projects as long as this copyright header is left intact.
11
- *
12
- * Date: 22 Apr 2013
13
- */
14
- (function(e,t,undefined){function a(){var e=this;e.id=null,e.busy=!1,e.start=function(t,a){e.busy||(e.stop(),e.id=setTimeout(function(){t(),e.id=null,e.busy=!1},a),e.busy=!0)},e.stop=function(){null!==e.id&&(clearTimeout(e.id),e.id=null,e.busy=!1)}}function i(i,o,n){var r=this;r.id=n,r.table=i,r.options=o,r.breakpoints=[],r.breakpointNames="",r.columns={};var l=r.options,d=l.classes,s=l.events,u=l.triggers,f=0;return r.timers={resize:new a,register:function(e){return r.timers[e]=new a,r.timers[e]}},t.footable.plugins.init(r),r.init=function(){var a=e(t),i=e(r.table);if(i.hasClass(d.loaded))return r.raise(s.alreadyInitialized),undefined;r.raise(s.initializing),i.addClass(d.loading),i.find(l.columnDataSelector).each(function(){var e=r.getColumnData(this);r.columns[e.index]=e});for(var o in l.breakpoints)r.breakpoints.push({name:o,width:l.breakpoints[o]}),r.breakpointNames+=o+" ";r.breakpoints.sort(function(e,t){return e.width-t.width}),i.bind(u.initialize,function(){i.removeData("footable_info"),i.data("breakpoint",""),i.trigger(u.resize),i.removeClass(d.loading),i.addClass(d.loaded).addClass(d.main),r.raise(s.initialized)}).bind(u.redraw,function(){r.redraw()}).bind(u.resize,function(){r.resize()}).bind(u.expandFirstRow,function(){i.find(l.toggleSelector).first().not("."+d.detailShow).trigger(u.toggleRow)}),i.trigger(u.initialize),a.bind("resize.footable",function(){r.timers.resize.stop(),r.timers.resize.start(function(){r.raise(u.resize)},l.delay)})},r.addRowToggle=function(){if(l.addRowToggle){var t=e(r.table),a=!1;t.find("span."+d.toggle).remove();for(var i in r.columns){var o=r.columns[i];if(o.toggle){a=!0;var n="> tbody > tr:not(."+d.detail+") > td:nth-child("+(parseInt(o.index,10)+1)+")";return t.find(n).not("."+d.detailCell).prepend(e("<span />").addClass(d.toggle)),undefined}}a||t.find("> tbody > tr:not(."+d.detail+") > td:first-child").not("."+d.detailCell).prepend(e("<span />").addClass(d.toggle))}},r.setColumnClasses=function(){$table=e(r.table);for(var t in r.columns){var a=r.columns[t];if(null!==a.className){var i="",o=!0;e.each(a.matches,function(e,t){o||(i+=", "),i+="> tbody > tr:not(."+d.detail+") > td:nth-child("+(parseInt(t,10)+1)+")",o=!1}),$table.find(i).not("."+d.detailCell).addClass(a.className)}}},r.bindToggleSelectors=function(){var t=e(r.table);r.hasAnyBreakpointColumn()&&(t.find(l.toggleSelector).unbind(u.toggleRow).bind(u.toggleRow,function(){var t=e(this).is("tr")?e(this):e(this).parents("tr:first");r.toggleDetail(t.get(0))}),t.find(l.toggleSelector).unbind("click.footable").bind("click.footable",function(a){t.is(".breakpoint")&&e(a.target).is("td,.footable-toggle")&&e(this).trigger(u.toggleRow)}))},r.parse=function(e,t){var a=l.parsers[t.type]||l.parsers.alpha;return a(e)},r.getColumnData=function(t){var a=e(t),i=a.data("hide"),o=a.index();i=i||"",i=i.split(",");var n={index:o,hide:{},type:a.data("type")||"alpha",name:a.data("name")||e.trim(a.text()),ignore:a.data("ignore")||!1,toggle:a.data("toggle")||!1,className:a.data("class")||null,matches:[],names:{},group:a.data("group")||null,groupName:null};if(null!==n.group){var d=e(r.table).find('> thead > tr.footable-group-row > th[data-group="'+n.group+'"], > thead > tr.footable-group-row > td[data-group="'+n.group+'"]').first();n.groupName=r.parse(d,{type:"alpha"})}var u=parseInt(a.prev().attr("colspan")||0,10);f+=u>1?u-1:0;var h=parseInt(a.attr("colspan")||0,10),p=n.index+f;if(h>1){var g=a.data("names");g=g||"",g=g.split(",");for(var c=0;h>c;c++)n.matches.push(c+p),g.length>c&&(n.names[c+p]=g[c])}else n.matches.push(p);n.hide["default"]="all"===a.data("hide")||e.inArray("default",i)>=0;var b=!1;for(var m in l.breakpoints)n.hide[m]="all"===a.data("hide")||e.inArray(m,i)>=0,b=b||n.hide[m];n.hasBreakpoint=b;var v=r.raise(s.columnData,{column:{data:n,th:t}});return v.column.data},r.getViewportWidth=function(){return window.innerWidth||(document.body?document.body.offsetWidth:0)},r.getViewportHeight=function(){return window.innerHeight||(document.body?document.body.offsetHeight:0)},r.calculateWidthAndHeight=function(e,t){return jQuery.isFunction(l.calculateWidthAndHeightOverride)?l.calculateWidthAndHeightOverride(e,t):(t.viewportWidth<t.width&&(t.width=t.viewportWidth),t.viewportHeight<t.height&&(t.height=t.viewportHeight),t)},r.hasBreakpointColumn=function(e){for(var t in r.columns)if(r.columns[t].hide[e]){if(r.columns[t].ignore)continue;return!0}return!1},r.hasAnyBreakpointColumn=function(){for(var e in r.columns)if(r.columns[e].hasBreakpoint)return!0;return!1},r.resize=function(){var t=e(r.table);if(t.is(":visible")&&r.hasAnyBreakpointColumn()){var a={width:t.width(),height:t.height(),viewportWidth:r.getViewportWidth(),viewportHeight:r.getViewportHeight(),orientation:null};a.orientation=a.viewportWidth>a.viewportHeight?"landscape":"portrait",a=r.calculateWidthAndHeight(t,a);var i=t.data("footable_info");if(t.data("footable_info",a),r.raise(s.resizing,{old:i,info:a}),!i||i&&i.width&&i.width!==a.width||i&&i.height&&i.height!==a.height){for(var o,n=null,l=0;r.breakpoints.length>l;l++)if(o=r.breakpoints[l],o&&o.width&&a.width<=o.width){n=o;break}var d=null===n?"default":n.name,f=r.hasBreakpointColumn(d),h=t.data("breakpoint");t.data("breakpoint",d).removeClass("default breakpoint").removeClass(r.breakpointNames).addClass(d+(f?" breakpoint":"")),d!==h&&(t.trigger(u.redraw),r.raise(s.breakpoint,{breakpoint:d,info:a}))}r.raise(s.resized,{old:i,info:a})}},r.redraw=function(){r.addRowToggle(),r.bindToggleSelectors(),r.setColumnClasses();var t=e(r.table),a=t.data("breakpoint"),i=r.hasBreakpointColumn(a);t.find("> tbody > tr:not(."+d.detail+")").data("detail_created",!1).end().find("> thead > tr:last-child > th").each(function(){var i=r.columns[e(this).index()],o="",n=!0;e.each(i.matches,function(e,t){n||(o+=", ");var a=t+1;o+="> tbody > tr:not(."+d.detail+") > td:nth-child("+a+")",o+=", > tfoot > tr:not(."+d.detail+") > td:nth-child("+a+")",o+=", > colgroup > col:nth-child("+a+")",n=!1}),o+=', > thead > tr[data-group-row="true"] > th[data-group="'+i.group+'"]';var l=t.find(o).add(this);if(i.hide[a]===!1?l.show():l.hide(),1===t.find("> thead > tr.footable-group-row").length){var s=t.find('> thead > tr:last-child > th[data-group="'+i.group+'"]:visible, > thead > tr:last-child > th[data-group="'+i.group+'"]:visible'),u=t.find('> thead > tr.footable-group-row > th[data-group="'+i.group+'"], > thead > tr.footable-group-row > td[data-group="'+i.group+'"]'),f=0;e.each(s,function(){f+=parseInt(e(this).attr("colspan")||1,10)}),f>0?u.attr("colspan",f).show():u.hide()}}).end().find("> tbody > tr."+d.detailShow).each(function(){r.createOrUpdateDetailRow(this)}),t.find("> tbody > tr."+d.detailShow+":visible").each(function(){var t=e(this).next();t.hasClass(d.detail)&&(i?t.show():t.hide())}),t.find("> thead > tr > th.footable-last-column, > tbody > tr > td.footable-last-column").removeClass("footable-last-column"),t.find("> thead > tr > th.footable-first-column, > tbody > tr > td.footable-first-column").removeClass("footable-first-column"),t.find("> thead > tr, > tbody > tr").find("> th:visible:last, > td:visible:last").addClass("footable-last-column").end().find("> th:visible:first, > td:visible:first").addClass("footable-first-column"),r.raise(s.redrawn)},r.toggleDetail=function(t){var a=t.jquery?t:e(t),i=a.next();a.hasClass(d.detailShow)?(a.removeClass(d.detailShow),i.hasClass(d.detail)&&i.hide(),r.raise(s.rowCollapsed,{row:a[0]})):(r.createOrUpdateDetailRow(a[0]),a.addClass(d.detailShow),a.next().show(),r.raise(s.rowExpanded,{row:a[0]}))},r.removeRow=function(t){var a=t.jquery?t:e(t);a.hasClass(d.detail)&&(a=a.prev());var i=a.next();a.data("detail_created")===!0&&i.remove(),a.remove(),r.raise(s.rowRemoved)},r.appendRow=function(t){var a=t.jquery?t:e(t);e(r.table).find("tbody").append(a),r.redraw()},r.getColumnFromTdIndex=function(t){var a=null;for(var i in r.columns)if(e.inArray(t,r.columns[i].matches)>=0){a=r.columns[i];break}return a},r.createOrUpdateDetailRow=function(t){var a,i=e(t),o=i.next(),n=[];if(i.data("detail_created")===!0)return!0;if(i.is(":hidden"))return!1;if(r.raise(s.rowDetailUpdating,{row:i,detail:o}),i.find("> td:hidden").each(function(){var t=e(this).index(),a=r.getColumnFromTdIndex(t),i=a.name;return a.ignore===!0?!0:(t in a.names&&(i=a.names[t]),n.push({name:i,value:r.parse(this,a),display:e.trim(e(this).html()),group:a.group,groupName:a.groupName}),!0)}),0===n.length)return!1;var u=i.find("> td:visible").length,f=o.hasClass(d.detail);return f||(o=e('<tr class="'+d.detail+'"><td class="'+d.detailCell+'"><div class="'+d.detailInner+'"></div></td></tr>'),i.after(o)),o.find("> td:first").attr("colspan",u),a=o.find("."+d.detailInner).empty(),l.createDetail(a,n,l.createGroupedDetail,l.detailSeparator,d),i.data("detail_created",!0),r.raise(s.rowDetailUpdated,{row:i,detail:o}),!f},r.raise=function(t,a){r.options.debug===!0&&e.isFunction(r.options.log)&&r.options.log(t,"event"),a=a||{};var i={ft:r};e.extend(!0,i,a);var o=e.Event(t,i);return o.ft||e.extend(!0,o,i),e(r.table).trigger(o),o},r.init(),r}t.footable={options:{delay:100,breakpoints:{phone:480,tablet:1024},parsers:{alpha:function(t){return e(t).data("value")||e.trim(e(t).text())},numeric:function(t){var a=e(t).data("value")||e(t).text().replace(/[^0-9.\-]/g,"");return a=parseFloat(a),isNaN(a)&&(a=0),a}},addRowToggle:!0,calculateWidthAndHeightOverride:null,toggleSelector:" > tbody > tr:not(.footable-row-detail)",columnDataSelector:"> thead > tr:last-child > th, > thead > tr:last-child > td",detailSeparator:":",createGroupedDetail:function(e){for(var t={_none:{name:null,data:[]}},a=0;e.length>a;a++){var i=e[a].group;null!==i?(i in t||(t[i]={name:e[a].groupName||e[a].group,data:[]}),t[i].data.push(e[a])):t._none.data.push(e[a])}return t},createDetail:function(e,t,a,i,o){var n=a(t);for(var r in n)if(0!==n[r].data.length){"_none"!==r&&e.append('<div class="'+o.detailInnerGroup+'">'+n[r].name+"</div>");for(var l=0;n[r].data.length>l;l++){var d=n[r].data[l].name?i:"";e.append('<div class="'+o.detailInnerRow+'"><div class="'+o.detailInnerName+'">'+n[r].data[l].name+d+'</div><div class="'+o.detailInnerValue+'">'+n[r].data[l].display+"</div></div>")}}},classes:{main:"footable",loading:"footable-loading",loaded:"footable-loaded",toggle:"footable-toggle",detail:"footable-row-detail",detailCell:"footable-row-detail-cell",detailInner:"footable-row-detail-inner",detailInnerRow:"footable-row-detail-row",detailInnerGroup:"footable-row-detail-group",detailInnerName:"footable-row-detail-name",detailInnerValue:"footable-row-detail-value",detailShow:"footable-detail-show"},triggers:{initialize:"footable_initialize",resize:"footable_resize",redraw:"footable_redraw",toggleRow:"footable_toggle_row",expandFirstRow:"footable_expand_first_row"},events:{alreadyInitialized:"footable_already_initialized",initializing:"footable_initializing",initialized:"footable_initialized",resizing:"footable_resizing",resized:"footable_resized",redrawn:"footable_redrawn",breakpoint:"footable_breakpoint",columnData:"footable_column_data",rowDetailUpdating:"footable_row_detail_updating",rowDetailUpdated:"footable_row_detail_updated",rowCollapsed:"footable_row_collapsed",rowExpanded:"footable_row_expanded",rowRemoved:"footable_row_removed"},debug:!1,log:null},version:{major:0,minor:5,toString:function(){return t.footable.version.major+"."+t.footable.version.minor},parse:function(e){return version=/(\d+)\.?(\d+)?\.?(\d+)?/.exec(e),{major:parseInt(version[1],10)||0,minor:parseInt(version[2],10)||0,patch:parseInt(version[3],10)||0}}},plugins:{_validate:function(a){return"string"!=typeof a.name?(t.footable.options.debug===!0&&console.error('Validation failed, plugin does not implement a string property called "name".',a),!1):e.isFunction(a.init)?(t.footable.options.debug===!0&&console.log('Validation succeeded for plugin "'+a.name+'".',a),!0):(t.footable.options.debug===!0&&console.error('Validation failed, plugin "'+a.name+'" does not implement a function called "init".',a),!1)},registered:[],register:function(a,i){t.footable.plugins._validate(a)&&(t.footable.plugins.registered.push(a),i!==undefined&&"object"==typeof i&&e.extend(!0,t.footable.options,i),t.footable.options.debug===!0&&console.log('Plugin "'+a.name+'" has been registered with the Foobox.',a))},init:function(e){for(var a=0;t.footable.plugins.registered.length>a;a++)try{t.footable.plugins.registered[a].init(e)}catch(i){t.footable.options.debug===!0&&console.error(i)}}}};var o=0;e.fn.footable=function(a){a=a||{};var n=e.extend(!0,{},t.footable.options,a);return this.each(function(){o++;var t=new i(this,n,o);e(this).data("footable",t)})}})(jQuery,window);
1
+ (function(t,e,undefined){function a(){var e=this;e.name="Footable Filter",e.init=function(a){if(e.footable=a,a.options.filter.enabled===!0){if(t(a.table).data("filter")===!1)return;a.timers.register("filter"),t(a.table).bind({footable_initialized:function(){var i=t(a.table),o={input:i.data("filter")||a.options.filter.input,timeout:i.data("filter-timeout")||a.options.filter.timeout,minimum:i.data("filter-minimum")||a.options.filter.minimum,disableEnter:i.data("filter-disable-enter")||a.options.filter.disableEnter};o.disableEnter&&t(o.input).keypress(function(t){return window.event?13!==window.event.keyCode:13!==t.which}),i.bind("footable_clear_filter",function(){t(o.input).val(""),e.clearFilter()}),i.bind("footable_filter",function(t,a){e.filter(a.filter)}),t(o.input).keyup(function(i){a.timers.filter.stop(),27===i.which&&t(o.input).val(""),a.timers.filter.start(function(){var a=t(o.input).val()||"";e.filter(a)},o.timeout)})},footable_redrawn:function(){var i=t(a.table),o=i.data("filter-string");o&&e.filter(o)}}).data("footable-filter",e)}},e.filter=function(a){var i=e.footable,o=t(i.table),r=o.data("filter-minimum")||i.options.filter.minimum,n=!a,l=i.raise("footable_filtering",{filter:a,clear:n});if(!(l&&l.result===!1||l.filter&&r>l.filter.length))if(l.clear)e.clearFilter();else{var d=l.filter.split(" ");o.find("> tbody > tr").hide().addClass("footable-filtered");var s=o.find("> tbody > tr:not(.footable-row-detail)");t.each(d,function(t,e){e&&e.length>0&&(o.data("current-filter",e),s=s.filter(i.options.filter.filterFunction))}),s.each(function(){e.showRow(this,i),t(this).removeClass("footable-filtered")}),o.data("filter-string",l.filter),i.raise("footable_filtered",{filter:l.filter,clear:!1})}},e.clearFilter=function(){var a=e.footable,i=t(a.table);i.find("> tbody > tr:not(.footable-row-detail)").removeClass("footable-filtered").each(function(){e.showRow(this,a)}),i.removeData("filter-string"),a.raise("footable_filtered",{clear:!0})},e.showRow=function(e,a){var i=t(e),o=i.next(),r=t(a.table);i.is(":visible")||(r.hasClass("breakpoint")&&i.hasClass("footable-detail-show")&&o.hasClass("footable-row-detail")?(i.add(o).show(),a.createOrUpdateDetailRow(e)):i.show())}}if(e.footable===undefined||null===e.footable)throw Error("Please check and make sure footable.js is included in the page and is loaded prior to this script.");var i={filter:{enabled:!0,input:".footable-filter",timeout:300,minimum:2,disableEnter:!1,filterFunction:function(){var e=t(this),a=e.parents("table:first"),i=a.data("current-filter").toUpperCase(),o=e.find("td").text();return a.data("filter-text-only")||e.find("td[data-value]").each(function(){o+=t(this).data("value")}),o.toUpperCase().indexOf(i)>=0}}};e.footable.plugins.register(a,i)})(jQuery,window);
@@ -31,6 +31,7 @@
31
31
 
32
32
  p.init = function (ft) {
33
33
  if (ft.options.paginate === true) {
34
+ if ($(ft.table).data('page') === false) return;
34
35
  $(ft.table).bind({
35
36
  'footable_initialized': function () {
36
37
  ft.pageInfo = new pageInfo(ft);
@@ -178,6 +179,6 @@
178
179
  };
179
180
  }
180
181
 
181
- w.footable.plugins.register(new Paginate(), defaults);
182
+ w.footable.plugins.register(Paginate, defaults);
182
183
 
183
184
  })(jQuery, window);
@@ -1 +1 @@
1
- (function(e,t,undefined){function a(t){var a=e(t.table);a.find("> tbody"),this.pageNavigation=a.data("page-navigation")||t.options.pageNavigation,this.pageSize=a.data("page-size")||t.options.pageSize,this.firstText=a.data("page-first-text")||t.options.firstText,this.previousText=a.data("page-previous-text")||t.options.previousText,this.nextText=a.data("page-next-text")||t.options.nextText,this.lastText=a.data("page-last-text")||t.options.lastText,this.currentPage=0,this.pages=[],this.control=!1}function i(){var t=this;t.name="Footable Paginate",t.init=function(i){i.options.paginate===!0&&e(i.table).bind({footable_initialized:function(){i.pageInfo=new a(i),i.raise("footable_setup_paging")},"footable_row_removed footable_redrawn footable_sorted footable_filtered footable_setup_paging":function(){i.pageInfo&&t.setupPaging(i)}})},t.setupPaging=function(a){var i=e(a.table).find("> tbody");t.createPages(a,i),t.createNavigation(a,i),t.fillPage(a,i,a.pageInfo.currentPage)},t.createPages=function(t,a){var i=1,o=t.pageInfo,n=i*o.pageSize,r=[],l=[];o.pages=[];var d=a.find("> tr:not(.footable-filtered,.footable-row-detail)");d.each(function(e,t){r.push(t),e===n-1?(o.pages.push(r),i++,n=i*o.pageSize,r=[]):e>=d.length-d.length%o.pageSize&&l.push(t)}),l.length>0&&o.pages.push(l),o.currentPage>=o.pages.length&&(o.currentPage=o.pages.length-1),0>o.currentPage&&(o.currentPage=0),1===o.pages.length?e(t.table).addClass("no-paging"):e(t.table).removeClass("no-paging")},t.createNavigation=function(a){var i=e(a.table).find(a.pageInfo.pageNavigation);if(0===i.length){if(i=e(a.pageInfo.pageNavigation),i.parents("table:first")!==e(a.table))return;i.length>1&&a.options.debug===!0&&console.error("More than one pagination control was found!")}if(0!==i.length){i.is("ul")||(0===i.find("ul:first").length&&i.append("<ul />"),i=i.find("ul")),i.find("li").remove();var o=a.pageInfo;o.control=i,o.pages.length>0&&(i.append('<li class="footable-page-arrow"><a data-page="first" href="#first">'+a.pageInfo.firstText+"</a>"),i.append('<li class="footable-page-arrow"><a data-page="prev" href="#prev">'+a.pageInfo.previousText+"</a></li>"),e.each(o.pages,function(e,t){t.length>0&&i.append('<li class="footable-page"><a data-page="'+e+'" href="#">'+(e+1)+"</a></li>")}),i.append('<li class="footable-page-arrow"><a data-page="next" href="#next">'+a.pageInfo.nextText+"</a></li>"),i.append('<li class="footable-page-arrow"><a data-page="last" href="#last">'+a.pageInfo.lastText+"</a></li>")),i.find("a").click(function(i){i.preventDefault();var n=e(this).data("page"),r=o.currentPage;"first"===n?r=0:"prev"===n?r>0&&r--:"next"===n?o.pages.length-1>r&&r++:r="last"===n?o.pages.length-1:n,t.paginate(a,r)}),t.setPagingClasses(i,o.currentPage,o.pages.length)}},t.paginate=function(a,i){var o=a.pageInfo;if(o.currentPage!==i){var n=e(a.table).find("> tbody"),r=a.raise("footable_paging",{page:i,size:o.pageSize});if(r&&r.result===!1)return;t.fillPage(a,n,i),o.control.find("li").removeClass("active disabled"),t.setPagingClasses(o.control,o.currentPage,o.pages.length)}},t.setPagingClasses=function(e,t,a){e.find("li.footable-page > a[data-page="+t+"]").parent().addClass("active"),t>=a-1&&(e.find('li.footable-page-arrow > a[data-page="next"]').parent().addClass("disabled"),e.find('li.footable-page-arrow > a[data-page="last"]').parent().addClass("disabled")),1>t&&(e.find('li.footable-page-arrow > a[data-page="first"]').parent().addClass("disabled"),e.find('li.footable-page-arrow > a[data-page="prev"]').parent().addClass("disabled"))},t.fillPage=function(a,i,o){a.pageInfo.currentPage=o,i.find("> tr").hide(),e(a.pageInfo.pages[o]).each(function(){t.showRow(this,a)})},t.showRow=function(t,a){var i=e(t),o=i.next(),n=e(a.table);n.hasClass("breakpoint")&&i.hasClass("footable-detail-show")&&o.hasClass("footable-row-detail")?(i.add(o).show(),a.createOrUpdateDetailRow(t)):i.show()}}if(t.footable===undefined||null===t.footable)throw Error("Please check and make sure footable.js is included in the page and is loaded prior to this script.");var o={paginate:!0,pageSize:10,pageNavigation:".pagination",firstText:"&laquo;",previousText:"&lsaquo;",nextText:"&rsaquo;",lastText:"&raquo;"};t.footable.plugins.register(new i,o)})(jQuery,window);
1
+ (function(e,t,undefined){function a(t){var a=e(t.table);a.find("> tbody"),this.pageNavigation=a.data("page-navigation")||t.options.pageNavigation,this.pageSize=a.data("page-size")||t.options.pageSize,this.firstText=a.data("page-first-text")||t.options.firstText,this.previousText=a.data("page-previous-text")||t.options.previousText,this.nextText=a.data("page-next-text")||t.options.nextText,this.lastText=a.data("page-last-text")||t.options.lastText,this.currentPage=0,this.pages=[],this.control=!1}function i(){var t=this;t.name="Footable Paginate",t.init=function(i){if(i.options.paginate===!0){if(e(i.table).data("page")===!1)return;e(i.table).bind({footable_initialized:function(){i.pageInfo=new a(i),i.raise("footable_setup_paging")},"footable_row_removed footable_redrawn footable_sorted footable_filtered footable_setup_paging":function(){i.pageInfo&&t.setupPaging(i)}})}},t.setupPaging=function(a){var i=e(a.table).find("> tbody");t.createPages(a,i),t.createNavigation(a,i),t.fillPage(a,i,a.pageInfo.currentPage)},t.createPages=function(t,a){var i=1,o=t.pageInfo,n=i*o.pageSize,r=[],l=[];o.pages=[];var d=a.find("> tr:not(.footable-filtered,.footable-row-detail)");d.each(function(e,t){r.push(t),e===n-1?(o.pages.push(r),i++,n=i*o.pageSize,r=[]):e>=d.length-d.length%o.pageSize&&l.push(t)}),l.length>0&&o.pages.push(l),o.currentPage>=o.pages.length&&(o.currentPage=o.pages.length-1),0>o.currentPage&&(o.currentPage=0),1===o.pages.length?e(t.table).addClass("no-paging"):e(t.table).removeClass("no-paging")},t.createNavigation=function(a){var i=e(a.table).find(a.pageInfo.pageNavigation);if(0===i.length){if(i=e(a.pageInfo.pageNavigation),i.parents("table:first")!==e(a.table))return;i.length>1&&a.options.debug===!0&&console.error("More than one pagination control was found!")}if(0!==i.length){i.is("ul")||(0===i.find("ul:first").length&&i.append("<ul />"),i=i.find("ul")),i.find("li").remove();var o=a.pageInfo;o.control=i,o.pages.length>0&&(i.append('<li class="footable-page-arrow"><a data-page="first" href="#first">'+a.pageInfo.firstText+"</a>"),i.append('<li class="footable-page-arrow"><a data-page="prev" href="#prev">'+a.pageInfo.previousText+"</a></li>"),e.each(o.pages,function(e,t){t.length>0&&i.append('<li class="footable-page"><a data-page="'+e+'" href="#">'+(e+1)+"</a></li>")}),i.append('<li class="footable-page-arrow"><a data-page="next" href="#next">'+a.pageInfo.nextText+"</a></li>"),i.append('<li class="footable-page-arrow"><a data-page="last" href="#last">'+a.pageInfo.lastText+"</a></li>")),i.find("a").click(function(i){i.preventDefault();var n=e(this).data("page"),r=o.currentPage;"first"===n?r=0:"prev"===n?r>0&&r--:"next"===n?o.pages.length-1>r&&r++:r="last"===n?o.pages.length-1:n,t.paginate(a,r)}),t.setPagingClasses(i,o.currentPage,o.pages.length)}},t.paginate=function(a,i){var o=a.pageInfo;if(o.currentPage!==i){var n=e(a.table).find("> tbody"),r=a.raise("footable_paging",{page:i,size:o.pageSize});if(r&&r.result===!1)return;t.fillPage(a,n,i),o.control.find("li").removeClass("active disabled"),t.setPagingClasses(o.control,o.currentPage,o.pages.length)}},t.setPagingClasses=function(e,t,a){e.find("li.footable-page > a[data-page="+t+"]").parent().addClass("active"),t>=a-1&&(e.find('li.footable-page-arrow > a[data-page="next"]').parent().addClass("disabled"),e.find('li.footable-page-arrow > a[data-page="last"]').parent().addClass("disabled")),1>t&&(e.find('li.footable-page-arrow > a[data-page="first"]').parent().addClass("disabled"),e.find('li.footable-page-arrow > a[data-page="prev"]').parent().addClass("disabled"))},t.fillPage=function(a,i,o){a.pageInfo.currentPage=o,i.find("> tr").hide(),e(a.pageInfo.pages[o]).each(function(){t.showRow(this,a)})},t.showRow=function(t,a){var i=e(t),o=i.next(),n=e(a.table);n.hasClass("breakpoint")&&i.hasClass("footable-detail-show")&&o.hasClass("footable-row-detail")?(i.add(o).show(),a.createOrUpdateDetailRow(t)):i.show()}}if(t.footable===undefined||null===t.footable)throw Error("Please check and make sure footable.js is included in the page and is loaded prior to this script.");var o={paginate:!0,pageSize:10,pageNavigation:".pagination",firstText:"&laquo;",previousText:"&lsaquo;",nextText:"&rsaquo;",lastText:"&raquo;"};t.footable.plugins.register(i,o)})(jQuery,window);
@@ -115,7 +115,8 @@
115
115
  cls = ft.options.classes.sort,
116
116
  evt = ft.options.events.sort;
117
117
 
118
- ascending = (ascending === undefined) ? !$th.hasClass(cls.sorted) : ascending;
118
+ ascending = (ascending === undefined) ? $th.hasClass(cls.sorted) :
119
+ (ascending === 'toggle') ? !$th.hasClass(cls.sorted) : ascending;
119
120
 
120
121
  if (column.sort.ignore === true) return true;
121
122
 
@@ -180,6 +181,6 @@
180
181
  };
181
182
  }
182
183
 
183
- w.footable.plugins.register(new Sort(), defaults);
184
+ w.footable.plugins.register(Sort, defaults);
184
185
 
185
186
  })(jQuery, window);
@@ -1 +1 @@
1
- (function(e,t,undefined){function a(){var t=this;t.name="Footable Sortable",t.init=function(a){t.footable=a,a.options.sort===!0&&e(a.table).bind({footable_initialized:function(){var o,i,n=e(a.table),r=(n.find("> tbody"),a.options.classes.sort);if(n.data("sort")!==!1){n.find("> thead > tr:last-child > th, > thead > tr:last-child > td").each(function(){i=e(this),o=a.columns[i.index()],o.sort.ignore===!0||i.hasClass(r.sortable)||(i.addClass(r.sortable),e("<span />").addClass(r.indicator).appendTo(i))}),n.find("> thead > tr:last-child > th."+r.sortable+", > thead > tr:last-child > td."+r.sortable).unbind("click.footable").bind("click.footable",function(a){a.preventDefault(),i=e(this);var o=!i.hasClass(r.sorted);return t.doSort(i.index(),o),!1});var l=!1;for(var d in a.columns)if(o=a.columns[d],o.sort.initial){var s="descending"!==o.sort.initial;t.doSort(o.index,s);break}l&&a.bindToggleSelectors()}},footable_redrawn:function(){var o=e(a.table),i=a.options.classes.sort;o.data("sorted")>=0&&o.find("> thead > tr:last-child > th").each(function(a){var o=e(this);return o.hasClass(i.sorted)||o.hasClass(i.descending)?(t.doSort(a),undefined):undefined})},footable_column_data:function(t){var a=e(t.column.th);t.column.data.sort=t.column.data.sort||{},t.column.data.sort.initial=a.data("sort-initial")||!1,t.column.data.sort.ignore=a.data("sort-ignore")||!1,t.column.data.sort.selector=a.data("sort-selector")||null;var o=a.data("sort-match")||0;o>=t.column.data.matches.length&&(o=0),t.column.data.sort.match=t.column.data.matches[o]}}).data("footable-sort",t)},t.doSort=function(a,o){var i=t.footable;if(e(i.table).data("sort")!==!1){var n=e(i.table),r=n.find("> tbody"),l=i.columns[a],d=n.find("> thead > tr:last-child > th:eq("+a+")"),s=i.options.classes.sort,u=i.options.events.sort;if(o=o===undefined?!d.hasClass(s.sorted):o,l.sort.ignore===!0)return!0;var f=i.raise(u.sorting,{column:l,direction:o?"ASC":"DESC"});f&&f.result===!1||(n.data("sorted",l.index),n.find("> thead > tr:last-child > th, > thead > tr:last-child > td").not(d).removeClass(s.sorted+" "+s.descending),o===undefined&&(o=d.hasClass(s.sorted)),o?d.removeClass(s.descending).addClass(s.sorted):d.removeClass(s.sorted).addClass(s.descending),t.sort(i,r,l,o),i.bindToggleSelectors(),i.raise(u.sorted,{column:l,direction:o?"ASC":"DESC"}))}},t.rows=function(t,a,o){var i=[];return a.find("> tr").each(function(){var a=e(this),n=null;if(a.hasClass(t.options.classes.detail))return!0;a.next().hasClass(t.options.classes.detail)&&(n=a.next().get(0));var r={row:a,detail:n};return o!==undefined&&(r.value=t.parse(this.cells[o.sort.match],o)),i.push(r),!0}).detach(),i},t.sort=function(e,a,o,i){var n=t.rows(e,a,o),r=e.options.sorters[o.type]||e.options.sorters.alpha;n.sort(function(e,t){return i?r(e.value,t.value):r(t.value,e.value)});for(var l=0;n.length>l;l++)a.append(n[l].row),null!==n[l].detail&&a.append(n[l].detail)}}if(t.footable===undefined||null===t.footable)throw Error("Please check and make sure footable.js is included in the page and is loaded prior to this script.");var o={sort:!0,sorters:{alpha:function(e,t){return e===t?0:t>e?-1:1},numeric:function(e,t){return e-t}},classes:{sort:{sortable:"footable-sortable",sorted:"footable-sorted",descending:"footable-sorted-desc",indicator:"footable-sort-indicator"}},events:{sort:{sorting:"footable_sorting",sorted:"footable_sorted"}}};t.footable.plugins.register(new a,o)})(jQuery,window);
1
+ (function(t,e,undefined){function a(){var e=this;e.name="Footable Sortable",e.init=function(a){e.footable=a,a.options.sort===!0&&t(a.table).bind({footable_initialized:function(){var o,i,n=t(a.table),r=(n.find("> tbody"),a.options.classes.sort);if(n.data("sort")!==!1){n.find("> thead > tr:last-child > th, > thead > tr:last-child > td").each(function(){i=t(this),o=a.columns[i.index()],o.sort.ignore===!0||i.hasClass(r.sortable)||(i.addClass(r.sortable),t("<span />").addClass(r.indicator).appendTo(i))}),n.find("> thead > tr:last-child > th."+r.sortable+", > thead > tr:last-child > td."+r.sortable).unbind("click.footable").bind("click.footable",function(a){a.preventDefault(),i=t(this);var o=!i.hasClass(r.sorted);return e.doSort(i.index(),o),!1});var l=!1;for(var s in a.columns)if(o=a.columns[s],o.sort.initial){var d="descending"!==o.sort.initial;e.doSort(o.index,d);break}l&&a.bindToggleSelectors()}},footable_redrawn:function(){var o=t(a.table),i=a.options.classes.sort;o.data("sorted")>=0&&o.find("> thead > tr:last-child > th").each(function(a){var o=t(this);return o.hasClass(i.sorted)||o.hasClass(i.descending)?(e.doSort(a),undefined):undefined})},footable_column_data:function(e){var a=t(e.column.th);e.column.data.sort=e.column.data.sort||{},e.column.data.sort.initial=a.data("sort-initial")||!1,e.column.data.sort.ignore=a.data("sort-ignore")||!1,e.column.data.sort.selector=a.data("sort-selector")||null;var o=a.data("sort-match")||0;o>=e.column.data.matches.length&&(o=0),e.column.data.sort.match=e.column.data.matches[o]}}).data("footable-sort",e)},e.doSort=function(a,o){var i=e.footable;if(t(i.table).data("sort")!==!1){var n=t(i.table),r=n.find("> tbody"),l=i.columns[a],s=n.find("> thead > tr:last-child > th:eq("+a+")"),d=i.options.classes.sort,f=i.options.events.sort;if(o=o===undefined?s.hasClass(d.sorted):"toggle"===o?!s.hasClass(d.sorted):o,l.sort.ignore===!0)return!0;var u=i.raise(f.sorting,{column:l,direction:o?"ASC":"DESC"});u&&u.result===!1||(n.data("sorted",l.index),n.find("> thead > tr:last-child > th, > thead > tr:last-child > td").not(s).removeClass(d.sorted+" "+d.descending),o===undefined&&(o=s.hasClass(d.sorted)),o?s.removeClass(d.descending).addClass(d.sorted):s.removeClass(d.sorted).addClass(d.descending),e.sort(i,r,l,o),i.bindToggleSelectors(),i.raise(f.sorted,{column:l,direction:o?"ASC":"DESC"}))}},e.rows=function(e,a,o){var i=[];return a.find("> tr").each(function(){var a=t(this),n=null;if(a.hasClass(e.options.classes.detail))return!0;a.next().hasClass(e.options.classes.detail)&&(n=a.next().get(0));var r={row:a,detail:n};return o!==undefined&&(r.value=e.parse(this.cells[o.sort.match],o)),i.push(r),!0}).detach(),i},e.sort=function(t,a,o,i){var n=e.rows(t,a,o),r=t.options.sorters[o.type]||t.options.sorters.alpha;n.sort(function(t,e){return i?r(t.value,e.value):r(e.value,t.value)});for(var l=0;n.length>l;l++)a.append(n[l].row),null!==n[l].detail&&a.append(n[l].detail)}}if(e.footable===undefined||null===e.footable)throw Error("Please check and make sure footable.js is included in the page and is loaded prior to this script.");var o={sort:!0,sorters:{alpha:function(t,e){return t===e?0:e>t?-1:1},numeric:function(t,e){return t-e}},classes:{sort:{sortable:"footable-sortable",sorted:"footable-sorted",descending:"footable-sorted-desc",indicator:"footable-sort-indicator"}},events:{sort:{sorting:"footable_sorting",sorted:"footable_sorted"}}};e.footable.plugins.register(a,o)})(jQuery,window);
@@ -115,6 +115,14 @@
115
115
  .footable.breakpoint.toggle-large > tbody > tr > td > span.footable-toggle {
116
116
  font-size: 24px;
117
117
  }
118
+ .footable > thead > tr > th {
119
+ -webkit-touch-callout: none;
120
+ -webkit-user-select: none;
121
+ -khtml-user-select: none;
122
+ -moz-user-select: -moz-none;
123
+ -ms-user-select: none;
124
+ user-select: none;
125
+ }
118
126
  .footable > thead > tr > th.footable-sortable:hover {
119
127
  cursor: pointer;
120
128
  }
@@ -1 +1 @@
1
- @font-face{font-family:'footable';src:url('fonts/footable.eot');src:url('fonts/footable.eot?#iefix') format('embedded-opentype'),url('fonts/footable.woff') format('woff'),url('fonts/footable.ttf') format('truetype'),url('fonts/footable.svg#footable') format('svg');font-weight:normal;font-style:normal}@media screen and (-webkit-min-device-pixel-ratio:0){@font-face{font-family:'footable';src:url('fonts/footable.svg#footable') format('svg');font-weight:normal;font-style:normal}}.footable{width:100%}.footable.breakpoint>tbody>tr.footable-detail-show>td{border-bottom:0}.footable.breakpoint>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e001"}.footable.breakpoint>tbody>tr:hover:not(.footable-row-detail){cursor:pointer}.footable.breakpoint>tbody>tr>td.footable-cell-detail{background:#eee;border-top:0}.footable.breakpoint>tbody>tr>td>span.footable-toggle{display:inline-block;font-family:'footable';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;padding-right:5px;font-size:14px;color:#888}.footable.breakpoint>tbody>tr>td>span.footable-toggle:before{content:"\e000"}.footable.breakpoint.toggle-circle>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e005"}.footable.breakpoint.toggle-circle>tbody>tr>td>span.footable-toggle:before{content:"\e004"}.footable.breakpoint.toggle-circle-filled>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e003"}.footable.breakpoint.toggle-circle-filled>tbody>tr>td>span.footable-toggle:before{content:"\e002"}.footable.breakpoint.toggle-square>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e007"}.footable.breakpoint.toggle-square>tbody>tr>td>span.footable-toggle:before{content:"\e006"}.footable.breakpoint.toggle-square-filled>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e009"}.footable.breakpoint.toggle-square-filled>tbody>tr>td>span.footable-toggle:before{content:"\e008"}.footable.breakpoint.toggle-arrow>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e00f"}.footable.breakpoint.toggle-arrow>tbody>tr>td>span.footable-toggle:before{content:"\e011"}.footable.breakpoint.toggle-arrow-small>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e013"}.footable.breakpoint.toggle-arrow-small>tbody>tr>td>span.footable-toggle:before{content:"\e015"}.footable.breakpoint.toggle-arrow-circle>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e01b"}.footable.breakpoint.toggle-arrow-circle>tbody>tr>td>span.footable-toggle:before{content:"\e01d"}.footable.breakpoint.toggle-arrow-circle-filled>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e00b"}.footable.breakpoint.toggle-arrow-circle-filled>tbody>tr>td>span.footable-toggle:before{content:"\e00d"}.footable.breakpoint.toggle-arrow-tiny>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e01f"}.footable.breakpoint.toggle-arrow-tiny>tbody>tr>td>span.footable-toggle:before{content:"\e021"}.footable.breakpoint.toggle-arrow-alt>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e017"}.footable.breakpoint.toggle-arrow-alt>tbody>tr>td>span.footable-toggle:before{content:"\e019"}.footable.breakpoint.toggle-medium>tbody>tr>td>span.footable-toggle{font-size:18px}.footable.breakpoint.toggle-large>tbody>tr>td>span.footable-toggle{font-size:24px}.footable>thead>tr>th.footable-sortable:hover{cursor:pointer}.footable>thead>tr>th.footable-sorted>span.footable-sort-indicator:before{content:"\e013"}.footable>thead>tr>th.footable-sorted-desc>span.footable-sort-indicator:before{content:"\e012"}.footable>thead>tr>th>span.footable-sort-indicator{display:inline-block;font-family:'footable';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;padding-left:5px}.footable>thead>tr>th>span.footable-sort-indicator:before{content:"\e022"}.footable>tfoot .pagination{margin:0}.footable.no-paging .hide-if-no-paging{display:none}.footable-row-detail-inner{display:table}.footable-row-detail-row{display:table-row;line-height:1.5em}.footable-row-detail-group{display:block;line-height:2em;font-size:1.2em;font-weight:bold}.footable-row-detail-name{display:table-cell;font-weight:bold;padding-right:.5em}.footable-row-detail-value{display:table-cell}
1
+ @font-face{font-family:'footable';src:url('fonts/footable.eot');src:url('fonts/footable.eot?#iefix') format('embedded-opentype'),url('fonts/footable.woff') format('woff'),url('fonts/footable.ttf') format('truetype'),url('fonts/footable.svg#footable') format('svg');font-weight:normal;font-style:normal}@media screen and (-webkit-min-device-pixel-ratio:0){@font-face{font-family:'footable';src:url('fonts/footable.svg#footable') format('svg');font-weight:normal;font-style:normal}}.footable{width:100%}.footable.breakpoint>tbody>tr.footable-detail-show>td{border-bottom:0}.footable.breakpoint>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e001"}.footable.breakpoint>tbody>tr:hover:not(.footable-row-detail){cursor:pointer}.footable.breakpoint>tbody>tr>td.footable-cell-detail{background:#eee;border-top:0}.footable.breakpoint>tbody>tr>td>span.footable-toggle{display:inline-block;font-family:'footable';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;padding-right:5px;font-size:14px;color:#888}.footable.breakpoint>tbody>tr>td>span.footable-toggle:before{content:"\e000"}.footable.breakpoint.toggle-circle>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e005"}.footable.breakpoint.toggle-circle>tbody>tr>td>span.footable-toggle:before{content:"\e004"}.footable.breakpoint.toggle-circle-filled>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e003"}.footable.breakpoint.toggle-circle-filled>tbody>tr>td>span.footable-toggle:before{content:"\e002"}.footable.breakpoint.toggle-square>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e007"}.footable.breakpoint.toggle-square>tbody>tr>td>span.footable-toggle:before{content:"\e006"}.footable.breakpoint.toggle-square-filled>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e009"}.footable.breakpoint.toggle-square-filled>tbody>tr>td>span.footable-toggle:before{content:"\e008"}.footable.breakpoint.toggle-arrow>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e00f"}.footable.breakpoint.toggle-arrow>tbody>tr>td>span.footable-toggle:before{content:"\e011"}.footable.breakpoint.toggle-arrow-small>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e013"}.footable.breakpoint.toggle-arrow-small>tbody>tr>td>span.footable-toggle:before{content:"\e015"}.footable.breakpoint.toggle-arrow-circle>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e01b"}.footable.breakpoint.toggle-arrow-circle>tbody>tr>td>span.footable-toggle:before{content:"\e01d"}.footable.breakpoint.toggle-arrow-circle-filled>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e00b"}.footable.breakpoint.toggle-arrow-circle-filled>tbody>tr>td>span.footable-toggle:before{content:"\e00d"}.footable.breakpoint.toggle-arrow-tiny>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e01f"}.footable.breakpoint.toggle-arrow-tiny>tbody>tr>td>span.footable-toggle:before{content:"\e021"}.footable.breakpoint.toggle-arrow-alt>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e017"}.footable.breakpoint.toggle-arrow-alt>tbody>tr>td>span.footable-toggle:before{content:"\e019"}.footable.breakpoint.toggle-medium>tbody>tr>td>span.footable-toggle{font-size:18px}.footable.breakpoint.toggle-large>tbody>tr>td>span.footable-toggle{font-size:24px}.footable>thead>tr>th{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}.footable>thead>tr>th.footable-sortable:hover{cursor:pointer}.footable>thead>tr>th.footable-sorted>span.footable-sort-indicator:before{content:"\e013"}.footable>thead>tr>th.footable-sorted-desc>span.footable-sort-indicator:before{content:"\e012"}.footable>thead>tr>th>span.footable-sort-indicator{display:inline-block;font-family:'footable';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;padding-left:5px}.footable>thead>tr>th>span.footable-sort-indicator:before{content:"\e022"}.footable>tfoot .pagination{margin:0}.footable.no-paging .hide-if-no-paging{display:none}.footable-row-detail-inner{display:table}.footable-row-detail-row{display:table-row;line-height:1.5em}.footable-row-detail-group{display:block;line-height:2em;font-size:1.2em;font-weight:bold}.footable-row-detail-name{display:table-cell;font-weight:bold;padding-right:.5em}.footable-row-detail-value{display:table-cell}
@@ -6,6 +6,9 @@
6
6
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
7
7
  color: #444444;
8
8
  background: #efefef;
9
+ -moz-border-radius: 0;
10
+ -webkit-border-radius: 0;
11
+ border-radius: 0;
9
12
  }
10
13
  .footable.breakpoint > tbody > tr.footable-row-detail {
11
14
  background: #eeeeee;
@@ -29,9 +32,10 @@
29
32
  border-bottom: none;
30
33
  }
31
34
  .footable > tbody > tr > td {
32
- border-bottom: 1px solid #dddddd;
35
+ border-top: 1px solid #dddddd;
33
36
  padding: 10px;
34
37
  text-align: left;
38
+ border-left: none;
35
39
  }
36
40
  .footable > tbody > tr > td.footable-row-detail-cell,
37
41
  .footable > tbody > tr > td.footable-first-column {
@@ -48,6 +52,7 @@
48
52
  border: 1px solid #52b9e9;
49
53
  color: #ffffff;
50
54
  border-top: none;
55
+ border-left: none;
51
56
  font-weight: normal;
52
57
  }
53
58
  .footable > thead > tr > th.footable-first-column,
@@ -60,32 +65,44 @@
60
65
  border: 1px solid #52b9e9;
61
66
  color: #ffffff;
62
67
  border-top: none;
68
+ border-left: none;
63
69
  padding: 5px;
64
70
  }
65
- .footable tfoot .pagination ul {
71
+ .footable > tfoot .pagination {
72
+ text-align: center;
73
+ }
74
+ .footable > tfoot .pagination ul {
75
+ display: inline-block;
66
76
  -webkit-box-shadow: none;
67
77
  -moz-box-shadow: none;
68
78
  box-shadow: none;
69
79
  vertical-align: middle;
80
+ margin: 0;
81
+ padding: 0;
82
+ }
83
+ .footable > tfoot .pagination ul > li {
84
+ display: inline;
70
85
  }
71
- .footable tfoot .pagination ul > li > a,
72
- .footable tfoot .pagination ul > li > span {
86
+ .footable > tfoot .pagination ul > li > a,
87
+ .footable > tfoot .pagination ul > li > span {
88
+ float: left;
73
89
  border: 2px solid transparent;
74
90
  margin: 0 3px;
75
91
  color: #ffffff;
76
92
  background: transparent;
77
93
  padding: 1px 5px;
94
+ text-decoration: none;
78
95
  }
79
- .footable tfoot .pagination ul > li.disable > a {
96
+ .footable > tfoot .pagination ul > li.disabled > a {
80
97
  color: #888;
81
98
  }
82
- .footable tfoot .pagination ul > li.active > a {
99
+ .footable > tfoot .pagination ul > li.active > a {
83
100
  border-color: #ffffff;
84
101
  }
85
- .footable tfoot .pagination ul > li:first-child > a,
86
- .footable tfoot .pagination ul > li:last-child > a,
87
- .footable tfoot .pagination ul > li:first-child > span,
88
- .footable tfoot .pagination ul > li:last-child > span {
102
+ .footable > tfoot .pagination ul > li:first-child > a,
103
+ .footable > tfoot .pagination ul > li:last-child > a,
104
+ .footable > tfoot .pagination ul > li:first-child > span,
105
+ .footable > tfoot .pagination ul > li:last-child > span {
89
106
  -moz-border-radius: 0;
90
107
  -webkit-border-radius: 0;
91
108
  border-radius: 0;
@@ -1 +1 @@
1
- .footable{border-collapse:separate;border-spacing:0;width:100%;border:3px solid #52b9e9;font-family:"Open Sans",Arial,Helvetica,sans-serif;color:#444;background:#efefef}.footable.breakpoint>tbody>tr.footable-row-detail{background:#eee}.footable.breakpoint>tbody>tr:hover:not(.footable-row-detail){cursor:pointer}.footable.breakpoint>tbody>tr>td.footable-row-detail-cell{background:#fff}.footable>tbody img{vertical-align:middle}.footable>tbody>tr:hover:not(.footable-row-detail){background:#ddd}.footable>tbody>tr:hover:not(.footable-row-detail)>td{color:#000}.footable>tbody>tr:last-child>td{border-bottom:0}.footable>tbody>tr>td{border-bottom:1px solid #ddd;padding:10px;text-align:left}.footable>tbody>tr>td.footable-row-detail-cell,.footable>tbody>tr>td.footable-first-column{border-left:none}.footable>thead>tr>th{border-bottom:1px solid #ddd;padding:10px;text-align:left}.footable>thead>tr>th,.footable>thead>tr>td{background-color:#52b9e9;border:1px solid #52b9e9;color:#fff;border-top:0;font-weight:normal}.footable>thead>tr>th.footable-first-column,.footable>thead>tr>td.footable-first-column{border-left:none}.footable>tfoot>tr>th,.footable>tfoot>tr>td{background-color:#52b9e9;border:1px solid #52b9e9;color:#fff;border-top:0;padding:5px}.footable tfoot .pagination ul{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;vertical-align:middle}.footable tfoot .pagination ul>li>a,.footable tfoot .pagination ul>li>span{border:2px solid transparent;margin:0 3px;color:#fff;background:transparent;padding:1px 5px}.footable tfoot .pagination ul>li.disable>a{color:#888}.footable tfoot .pagination ul>li.active>a{border-color:#fff}.footable tfoot .pagination ul>li:first-child>a,.footable tfoot .pagination ul>li:last-child>a,.footable tfoot .pagination ul>li:first-child>span,.footable tfoot .pagination ul>li:last-child>span{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.footable.metro-red{border-color:#fa3031}.footable.metro-red>tfoot>tr>th,.footable.metro-red>thead>tr>th,.footable.metro-red>tfoot>tr>td,.footable.metro-red>thead>tr>td{background-color:#fa3031;border-color:#fa3031}.footable.metro-purple{border-color:#932ab6}.footable.metro-purple>tfoot>tr>th,.footable.metro-purple>thead>tr>th,.footable.metro-purple>tfoot>tr>td,.footable.metro-purple>thead>tr>td{background-color:#932ab6;border-color:#932ab6}.footable.metro-green{border-color:#43c83c}.footable.metro-green>tfoot>tr>th,.footable.metro-green>thead>tr>th,.footable.metro-green>tfoot>tr>td,.footable.metro-green>thead>tr>td{background-color:#43c83c;border-color:#43c83c}.footable.metro-blue{border-color:#1171a3}.footable.metro-blue>tfoot>tr>th,.footable.metro-blue>thead>tr>th,.footable.metro-blue>tfoot>tr>td,.footable.metro-blue>thead>tr>td{background-color:#1171a3;border-color:#1171a3}
1
+ .footable{border-collapse:separate;border-spacing:0;width:100%;border:3px solid #52b9e9;font-family:"Open Sans",Arial,Helvetica,sans-serif;color:#444;background:#efefef;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.footable.breakpoint>tbody>tr.footable-row-detail{background:#eee}.footable.breakpoint>tbody>tr:hover:not(.footable-row-detail){cursor:pointer}.footable.breakpoint>tbody>tr>td.footable-row-detail-cell{background:#fff}.footable>tbody img{vertical-align:middle}.footable>tbody>tr:hover:not(.footable-row-detail){background:#ddd}.footable>tbody>tr:hover:not(.footable-row-detail)>td{color:#000}.footable>tbody>tr:last-child>td{border-bottom:0}.footable>tbody>tr>td{border-top:1px solid #ddd;padding:10px;text-align:left;border-left:none}.footable>tbody>tr>td.footable-row-detail-cell,.footable>tbody>tr>td.footable-first-column{border-left:none}.footable>thead>tr>th{border-bottom:1px solid #ddd;padding:10px;text-align:left}.footable>thead>tr>th,.footable>thead>tr>td{background-color:#52b9e9;border:1px solid #52b9e9;color:#fff;border-top:0;border-left:none;font-weight:normal}.footable>thead>tr>th.footable-first-column,.footable>thead>tr>td.footable-first-column{border-left:none}.footable>tfoot>tr>th,.footable>tfoot>tr>td{background-color:#52b9e9;border:1px solid #52b9e9;color:#fff;border-top:0;border-left:none;padding:5px}.footable>tfoot .pagination{text-align:center}.footable>tfoot .pagination ul{display:inline-block;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;vertical-align:middle;margin:0;padding:0}.footable>tfoot .pagination ul>li{display:inline}.footable>tfoot .pagination ul>li>a,.footable>tfoot .pagination ul>li>span{float:left;border:2px solid transparent;margin:0 3px;color:#fff;background:transparent;padding:1px 5px;text-decoration:none}.footable>tfoot .pagination ul>li.disabled>a{color:#888}.footable>tfoot .pagination ul>li.active>a{border-color:#fff}.footable>tfoot .pagination ul>li:first-child>a,.footable>tfoot .pagination ul>li:last-child>a,.footable>tfoot .pagination ul>li:first-child>span,.footable>tfoot .pagination ul>li:last-child>span{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.footable.metro-red{border-color:#fa3031}.footable.metro-red>tfoot>tr>th,.footable.metro-red>thead>tr>th,.footable.metro-red>tfoot>tr>td,.footable.metro-red>thead>tr>td{background-color:#fa3031;border-color:#fa3031}.footable.metro-purple{border-color:#932ab6}.footable.metro-purple>tfoot>tr>th,.footable.metro-purple>thead>tr>th,.footable.metro-purple>tfoot>tr>td,.footable.metro-purple>thead>tr>td{background-color:#932ab6;border-color:#932ab6}.footable.metro-green{border-color:#43c83c}.footable.metro-green>tfoot>tr>th,.footable.metro-green>thead>tr>th,.footable.metro-green>tfoot>tr>td,.footable.metro-green>thead>tr>td{background-color:#43c83c;border-color:#43c83c}.footable.metro-blue{border-color:#1171a3}.footable.metro-blue>tfoot>tr>th,.footable.metro-blue>thead>tr>th,.footable.metro-blue>tfoot>tr>td,.footable.metro-blue>thead>tr>td{background-color:#1171a3;border-color:#1171a3}
@@ -8,6 +8,7 @@
8
8
  font-family: 'trebuchet MS', 'Lucida sans', Arial;
9
9
  font-size: 14px;
10
10
  color: #444444;
11
+ background: #ffffff;
11
12
  }
12
13
  .footable > thead > tr:first-child > th.footable-first-column,
13
14
  .footable > thead > tr:first-child > td.footable-first-column {
@@ -104,3 +105,74 @@
104
105
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
105
106
  padding: 10px;
106
107
  }
108
+ .footable .pagination {
109
+ margin: 20px 0;
110
+ }
111
+ .footable .pagination > ul {
112
+ display: inline-block;
113
+ margin: 0;
114
+ padding: 0;
115
+ -moz-border-radius: 6px;
116
+ -webkit-border-radius: 6px;
117
+ border-radius: 6px;
118
+ -webkit-box-shadow: none;
119
+ -moz-box-shadow: none;
120
+ box-shadow: none;
121
+ background-color: #ffffff;
122
+ }
123
+ .footable .pagination > ul > li {
124
+ display: inline;
125
+ }
126
+ .footable .pagination > ul > li > a,
127
+ .footable .pagination > ul > li > span {
128
+ float: left;
129
+ padding: 4px 12px;
130
+ line-height: 20px;
131
+ text-decoration: none;
132
+ border: 1px solid #cccccc;
133
+ border-left-width: 0;
134
+ }
135
+ .footable .pagination > ul > li:first-child > a,
136
+ .footable .pagination > ul > li:first-child > span {
137
+ -webkit-border-bottom-left-radius: 4px;
138
+ -moz-border-radius-bottomleft: 4px;
139
+ border-bottom-left-radius: 4px;
140
+ -webkit-border-top-left-radius: 4px;
141
+ -moz-border-radius-topleft: 4px;
142
+ border-top-left-radius: 4px;
143
+ border-left-width: 1px;
144
+ }
145
+ .footable .pagination > ul > li:last-child > a,
146
+ .footable .pagination > ul > li:last-child > span {
147
+ -webkit-border-top-right-radius: 4px;
148
+ -moz-border-radius-topright: 4px;
149
+ border-top-right-radius: 4px;
150
+ -webkit-border-bottom-right-radius: 4px;
151
+ -moz-border-radius-bottomright: 4px;
152
+ border-bottom-right-radius: 4px;
153
+ }
154
+ .footable .pagination > ul > li > a:hover,
155
+ .footable .pagination > ul > li > a:focus,
156
+ .footable .pagination > ul > .active > a,
157
+ .footable .pagination > ul > .active > span {
158
+ background-color: #eeeeee;
159
+ }
160
+ .footable .pagination > ul > .active > a,
161
+ .footable .pagination > ul > .active > span {
162
+ color: #444444;
163
+ cursor: default;
164
+ }
165
+ .footable .pagination > ul > .disabled > span,
166
+ .footable .pagination > ul > .disabled > a,
167
+ .footable .pagination > ul > .disabled > a:hover,
168
+ .footable .pagination > ul > .disabled > a:focus {
169
+ color: #cccccc;
170
+ cursor: default;
171
+ background-color: #ebf3fc;
172
+ }
173
+ .footable .pagination.pagination-centered {
174
+ text-align: center;
175
+ }
176
+ .footable .pagination.pagination-right {
177
+ text-align: center;
178
+ }
@@ -1 +1 @@
1
- .footable{border-collapse:separate;border-spacing:0;border:1px solid #ccc;-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;font-family:'trebuchet MS','Lucida sans',Arial;font-size:14px;color:#444}.footable>thead>tr:first-child>th.footable-first-column,.footable>thead>tr:first-child>td.footable-first-column{-moz-border-radius:6px 0 0 0;-webkit-border-radius:6px 0 0 0;border-radius:6px 0 0 0}.footable>thead>tr:first-child>th.footable-last-column,.footable>thead>tr:first-child>td.footable-last-column{-moz-border-radius:0 6px 0 0;-webkit-border-radius:0 6px 0 0;border-radius:0 6px 0 0}.footable>thead>tr:first-child>th.footable-first-column.footable-last-column,.footable>thead>tr:first-child>td.footable-first-column.footable-last-column{-moz-border-radius:6px 6px 0 0;-webkit-border-radius:6px 6px 0 0;border-radius:6px 6px 0 0}.footable>thead>tr>th{border-left:1px solid #ccc;border-top:1px solid #ccc;padding:10px;text-align:left}.footable>thead>tr>th,.footable>thead>tr>td{background-color:#dce9f9;background-image:-webkit-gradient(linear,left top,left bottom,from(#ebf3fc),to(#dce9f9));background-image:-webkit-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-moz-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-ms-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-o-linear-gradient(top,#ebf3fc,#dce9f9);background-image:linear-gradient(to bottom,#ebf3fc,#dce9f9);-webkit-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;-moz-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;border-top:0;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.footable>thead>tr>th.footable-first-column,.footable>thead>tr>td.footable-first-column{border-left:none}.footable.breakpoint>tbody>tr.footable-row-detail{background:#eee}.footable.breakpoint>tbody>tr.footable-row-detail>.footable-row-detail-cell{border-left:none}.footable>tbody img{vertical-align:middle}.footable>tbody>tr:hover{background:#fbf8e9}.footable>tbody>tr:last-child>td.footable-first-column{-moz-border-radius:0 0 0 6px;-webkit-border-radius:0 0 0 6px;border-radius:0 0 0 6px}.footable>tbody>tr:last-child>td.footable-last-column{-moz-border-radius:0 0 6px 0;-webkit-border-radius:0 0 6px 0;border-radius:0 0 6px 0}.footable>tbody>tr:last-child>td.footable-first-column.footable-last-column{-moz-border-radius:0 0 6px 6px;-webkit-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px}.footable>tbody>tr>td{border-top:1px solid #ccc;border-left:1px solid #ccc;padding:10px;text-align:left}.footable>tbody>tr>td.footable-first-column{border-left:none}.footable>tfoot>tr>th,.footable>tfoot>tr>td{background-color:#dce9f9;background-image:-webkit-gradient(linear,left top,left bottom,from(#ebf3fc),to(#dce9f9));background-image:-webkit-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-moz-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-ms-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-o-linear-gradient(top,#ebf3fc,#dce9f9);background-image:linear-gradient(to bottom,#ebf3fc,#dce9f9);-webkit-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;-moz-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;border-top:1px solid #ccc;text-shadow:0 1px 0 rgba(255,255,255,0.5);padding:10px}
1
+ .footable{border-collapse:separate;border-spacing:0;border:1px solid #ccc;-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;font-family:'trebuchet MS','Lucida sans',Arial;font-size:14px;color:#444;background:#fff}.footable>thead>tr:first-child>th.footable-first-column,.footable>thead>tr:first-child>td.footable-first-column{-moz-border-radius:6px 0 0 0;-webkit-border-radius:6px 0 0 0;border-radius:6px 0 0 0}.footable>thead>tr:first-child>th.footable-last-column,.footable>thead>tr:first-child>td.footable-last-column{-moz-border-radius:0 6px 0 0;-webkit-border-radius:0 6px 0 0;border-radius:0 6px 0 0}.footable>thead>tr:first-child>th.footable-first-column.footable-last-column,.footable>thead>tr:first-child>td.footable-first-column.footable-last-column{-moz-border-radius:6px 6px 0 0;-webkit-border-radius:6px 6px 0 0;border-radius:6px 6px 0 0}.footable>thead>tr>th{border-left:1px solid #ccc;border-top:1px solid #ccc;padding:10px;text-align:left}.footable>thead>tr>th,.footable>thead>tr>td{background-color:#dce9f9;background-image:-webkit-gradient(linear,left top,left bottom,from(#ebf3fc),to(#dce9f9));background-image:-webkit-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-moz-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-ms-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-o-linear-gradient(top,#ebf3fc,#dce9f9);background-image:linear-gradient(to bottom,#ebf3fc,#dce9f9);-webkit-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;-moz-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;border-top:0;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.footable>thead>tr>th.footable-first-column,.footable>thead>tr>td.footable-first-column{border-left:none}.footable.breakpoint>tbody>tr.footable-row-detail{background:#eee}.footable.breakpoint>tbody>tr.footable-row-detail>.footable-row-detail-cell{border-left:none}.footable>tbody img{vertical-align:middle}.footable>tbody>tr:hover{background:#fbf8e9}.footable>tbody>tr:last-child>td.footable-first-column{-moz-border-radius:0 0 0 6px;-webkit-border-radius:0 0 0 6px;border-radius:0 0 0 6px}.footable>tbody>tr:last-child>td.footable-last-column{-moz-border-radius:0 0 6px 0;-webkit-border-radius:0 0 6px 0;border-radius:0 0 6px 0}.footable>tbody>tr:last-child>td.footable-first-column.footable-last-column{-moz-border-radius:0 0 6px 6px;-webkit-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px}.footable>tbody>tr>td{border-top:1px solid #ccc;border-left:1px solid #ccc;padding:10px;text-align:left}.footable>tbody>tr>td.footable-first-column{border-left:none}.footable>tfoot>tr>th,.footable>tfoot>tr>td{background-color:#dce9f9;background-image:-webkit-gradient(linear,left top,left bottom,from(#ebf3fc),to(#dce9f9));background-image:-webkit-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-moz-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-ms-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-o-linear-gradient(top,#ebf3fc,#dce9f9);background-image:linear-gradient(to bottom,#ebf3fc,#dce9f9);-webkit-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;-moz-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;border-top:1px solid #ccc;text-shadow:0 1px 0 rgba(255,255,255,0.5);padding:10px}.footable .pagination{margin:20px 0}.footable .pagination>ul{display:inline-block;margin:0;padding:0;-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#fff}.footable .pagination>ul>li{display:inline}.footable .pagination>ul>li>a,.footable .pagination>ul>li>span{float:left;padding:4px 12px;line-height:20px;text-decoration:none;border:1px solid #ccc;border-left-width:0}.footable .pagination>ul>li:first-child>a,.footable .pagination>ul>li:first-child>span{-webkit-border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px;border-bottom-left-radius:4px;-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px;border-top-left-radius:4px;border-left-width:1px}.footable .pagination>ul>li:last-child>a,.footable .pagination>ul>li:last-child>span{-webkit-border-top-right-radius:4px;-moz-border-radius-topright:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px;border-bottom-right-radius:4px}.footable .pagination>ul>li>a:hover,.footable .pagination>ul>li>a:focus,.footable .pagination>ul>.active>a,.footable .pagination>ul>.active>span{background-color:#eee}.footable .pagination>ul>.active>a,.footable .pagination>ul>.active>span{color:#444;cursor:default}.footable .pagination>ul>.disabled>span,.footable .pagination>ul>.disabled>a,.footable .pagination>ul>.disabled>a:hover,.footable .pagination>ul>.disabled>a:focus{color:#ccc;cursor:default;background-color:#ebf3fc}.footable .pagination.pagination-centered{text-align:center}.footable .pagination.pagination-right{text-align:center}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foo_table-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Stevens
@@ -83,8 +83,6 @@ files:
83
83
  - vendor/assets/stylesheets/fonts/footable.svg
84
84
  - vendor/assets/stylesheets/fonts/footable.ttf
85
85
  - vendor/assets/stylesheets/fonts/footable.woff
86
- - vendor/assets/stylesheets/footable.all.css
87
- - vendor/assets/stylesheets/footable.all.min.css
88
86
  - vendor/assets/stylesheets/footable.core.css
89
87
  - vendor/assets/stylesheets/footable.core.min.css
90
88
  - vendor/assets/stylesheets/footable.metro.css
@@ -1,407 +0,0 @@
1
- @font-face {
2
- font-family: 'footable';
3
- src: url('fonts/footable.eot');
4
- src: url('fonts/footable.eot?#iefix') format('embedded-opentype'), url('fonts/footable.woff') format('woff'), url('fonts/footable.ttf') format('truetype'), url('fonts/footable.svg#footable') format('svg');
5
- font-weight: normal;
6
- font-style: normal;
7
- }
8
- @media screen and (-webkit-min-device-pixel-ratio: 0) {
9
- @font-face {
10
- font-family: 'footable';
11
- src: url('fonts/footable.svg#footable') format('svg');
12
- font-weight: normal;
13
- font-style: normal;
14
- }
15
- }
16
- .footable {
17
- width: 100%;
18
- /** SORTING **/
19
-
20
- /** PAGINATION **/
21
-
22
- }
23
- .footable.breakpoint > tbody > tr.footable-detail-show > td {
24
- border-bottom: none;
25
- }
26
- .footable.breakpoint > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
27
- content: "\e001";
28
- }
29
- .footable.breakpoint > tbody > tr:hover:not(.footable-row-detail) {
30
- cursor: pointer;
31
- }
32
- .footable.breakpoint > tbody > tr > td.footable-cell-detail {
33
- background: #eee;
34
- border-top: none;
35
- }
36
- .footable.breakpoint > tbody > tr > td > span.footable-toggle {
37
- display: inline-block;
38
- font-family: 'footable';
39
- speak: none;
40
- font-style: normal;
41
- font-weight: normal;
42
- font-variant: normal;
43
- text-transform: none;
44
- -webkit-font-smoothing: antialiased;
45
- padding-right: 5px;
46
- font-size: 14px;
47
- color: #888888;
48
- }
49
- .footable.breakpoint > tbody > tr > td > span.footable-toggle:before {
50
- content: "\e000";
51
- }
52
- .footable.breakpoint.toggle-circle > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
53
- content: "\e005";
54
- }
55
- .footable.breakpoint.toggle-circle > tbody > tr > td > span.footable-toggle:before {
56
- content: "\e004";
57
- }
58
- .footable.breakpoint.toggle-circle-filled > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
59
- content: "\e003";
60
- }
61
- .footable.breakpoint.toggle-circle-filled > tbody > tr > td > span.footable-toggle:before {
62
- content: "\e002";
63
- }
64
- .footable.breakpoint.toggle-square > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
65
- content: "\e007";
66
- }
67
- .footable.breakpoint.toggle-square > tbody > tr > td > span.footable-toggle:before {
68
- content: "\e006";
69
- }
70
- .footable.breakpoint.toggle-square-filled > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
71
- content: "\e009";
72
- }
73
- .footable.breakpoint.toggle-square-filled > tbody > tr > td > span.footable-toggle:before {
74
- content: "\e008";
75
- }
76
- .footable.breakpoint.toggle-arrow > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
77
- content: "\e00f";
78
- }
79
- .footable.breakpoint.toggle-arrow > tbody > tr > td > span.footable-toggle:before {
80
- content: "\e011";
81
- }
82
- .footable.breakpoint.toggle-arrow-small > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
83
- content: "\e013";
84
- }
85
- .footable.breakpoint.toggle-arrow-small > tbody > tr > td > span.footable-toggle:before {
86
- content: "\e015";
87
- }
88
- .footable.breakpoint.toggle-arrow-circle > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
89
- content: "\e01b";
90
- }
91
- .footable.breakpoint.toggle-arrow-circle > tbody > tr > td > span.footable-toggle:before {
92
- content: "\e01d";
93
- }
94
- .footable.breakpoint.toggle-arrow-circle-filled > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
95
- content: "\e00b";
96
- }
97
- .footable.breakpoint.toggle-arrow-circle-filled > tbody > tr > td > span.footable-toggle:before {
98
- content: "\e00d";
99
- }
100
- .footable.breakpoint.toggle-arrow-tiny > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
101
- content: "\e01f";
102
- }
103
- .footable.breakpoint.toggle-arrow-tiny > tbody > tr > td > span.footable-toggle:before {
104
- content: "\e021";
105
- }
106
- .footable.breakpoint.toggle-arrow-alt > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
107
- content: "\e017";
108
- }
109
- .footable.breakpoint.toggle-arrow-alt > tbody > tr > td > span.footable-toggle:before {
110
- content: "\e019";
111
- }
112
- .footable.breakpoint.toggle-medium > tbody > tr > td > span.footable-toggle {
113
- font-size: 18px;
114
- }
115
- .footable.breakpoint.toggle-large > tbody > tr > td > span.footable-toggle {
116
- font-size: 24px;
117
- }
118
- .footable > thead > tr > th.footable-sortable:hover {
119
- cursor: pointer;
120
- }
121
- .footable > thead > tr > th.footable-sorted > span.footable-sort-indicator:before {
122
- content: "\e013";
123
- }
124
- .footable > thead > tr > th.footable-sorted-desc > span.footable-sort-indicator:before {
125
- content: "\e012";
126
- }
127
- .footable > thead > tr > th > span.footable-sort-indicator {
128
- display: inline-block;
129
- font-family: 'footable';
130
- speak: none;
131
- font-style: normal;
132
- font-weight: normal;
133
- font-variant: normal;
134
- text-transform: none;
135
- -webkit-font-smoothing: antialiased;
136
- padding-left: 5px;
137
- }
138
- .footable > thead > tr > th > span.footable-sort-indicator:before {
139
- content: "\e022";
140
- }
141
- .footable > tfoot .pagination {
142
- margin: 0;
143
- }
144
- .footable.no-paging .hide-if-no-paging {
145
- display: none;
146
- }
147
- .footable-row-detail-inner {
148
- display: table;
149
- }
150
- .footable-row-detail-row {
151
- display: table-row;
152
- line-height: 1.5em;
153
- }
154
- .footable-row-detail-group {
155
- display: block;
156
- line-height: 2em;
157
- font-size: 1.2em;
158
- font-weight: bold;
159
- }
160
- .footable-row-detail-name {
161
- display: table-cell;
162
- font-weight: bold;
163
- padding-right: 0.5em;
164
- }
165
- .footable-row-detail-value {
166
- display: table-cell;
167
- }
168
-
169
- .footable {
170
- border-collapse: separate;
171
- border-spacing: 0;
172
- width: 100%;
173
- border: 3px solid #52b9e9;
174
- font-family: "Open Sans", Arial, Helvetica, sans-serif;
175
- color: #444444;
176
- background: #efefef;
177
- }
178
- .footable.breakpoint > tbody > tr.footable-row-detail {
179
- background: #eeeeee;
180
- }
181
- .footable.breakpoint > tbody > tr:hover:not(.footable-row-detail) {
182
- cursor: pointer;
183
- }
184
- .footable.breakpoint > tbody > tr > td.footable-row-detail-cell {
185
- background: #fff;
186
- }
187
- .footable > tbody img {
188
- vertical-align: middle;
189
- }
190
- .footable > tbody > tr:hover:not(.footable-row-detail) {
191
- background: #dddddd;
192
- }
193
- .footable > tbody > tr:hover:not(.footable-row-detail) > td {
194
- color: #000000;
195
- }
196
- .footable > tbody > tr:last-child > td {
197
- border-bottom: none;
198
- }
199
- .footable > tbody > tr > td {
200
- border-bottom: 1px solid #dddddd;
201
- padding: 10px;
202
- text-align: left;
203
- }
204
- .footable > tbody > tr > td.footable-row-detail-cell,
205
- .footable > tbody > tr > td.footable-first-column {
206
- border-left: none;
207
- }
208
- .footable > thead > tr > th {
209
- border-bottom: 1px solid #dddddd;
210
- padding: 10px;
211
- text-align: left;
212
- }
213
- .footable > thead > tr > th,
214
- .footable > thead > tr > td {
215
- background-color: #52b9e9;
216
- border: 1px solid #52b9e9;
217
- color: #ffffff;
218
- border-top: none;
219
- font-weight: normal;
220
- }
221
- .footable > thead > tr > th.footable-first-column,
222
- .footable > thead > tr > td.footable-first-column {
223
- border-left: none;
224
- }
225
- .footable > tfoot > tr > th,
226
- .footable > tfoot > tr > td {
227
- background-color: #52b9e9;
228
- border: 1px solid #52b9e9;
229
- color: #ffffff;
230
- border-top: none;
231
- padding: 5px;
232
- }
233
- .footable tfoot .pagination ul {
234
- -webkit-box-shadow: none;
235
- -moz-box-shadow: none;
236
- box-shadow: none;
237
- vertical-align: middle;
238
- }
239
- .footable tfoot .pagination ul > li > a,
240
- .footable tfoot .pagination ul > li > span {
241
- border: 2px solid transparent;
242
- margin: 0 3px;
243
- color: #ffffff;
244
- background: transparent;
245
- padding: 1px 5px;
246
- }
247
- .footable tfoot .pagination ul > li.disable > a {
248
- color: #888;
249
- }
250
- .footable tfoot .pagination ul > li.active > a {
251
- border-color: #ffffff;
252
- }
253
- .footable tfoot .pagination ul > li:first-child > a,
254
- .footable tfoot .pagination ul > li:last-child > a,
255
- .footable tfoot .pagination ul > li:first-child > span,
256
- .footable tfoot .pagination ul > li:last-child > span {
257
- -moz-border-radius: 0;
258
- -webkit-border-radius: 0;
259
- border-radius: 0;
260
- }
261
- .footable.metro-red {
262
- border-color: #fa3031;
263
- }
264
- .footable.metro-red > tfoot > tr > th,
265
- .footable.metro-red > thead > tr > th,
266
- .footable.metro-red > tfoot > tr > td,
267
- .footable.metro-red > thead > tr > td {
268
- background-color: #fa3031;
269
- border-color: #fa3031;
270
- }
271
- .footable.metro-purple {
272
- border-color: #932ab6;
273
- }
274
- .footable.metro-purple > tfoot > tr > th,
275
- .footable.metro-purple > thead > tr > th,
276
- .footable.metro-purple > tfoot > tr > td,
277
- .footable.metro-purple > thead > tr > td {
278
- background-color: #932ab6;
279
- border-color: #932ab6;
280
- }
281
- .footable.metro-green {
282
- border-color: #43c83c;
283
- }
284
- .footable.metro-green > tfoot > tr > th,
285
- .footable.metro-green > thead > tr > th,
286
- .footable.metro-green > tfoot > tr > td,
287
- .footable.metro-green > thead > tr > td {
288
- background-color: #43c83c;
289
- border-color: #43c83c;
290
- }
291
- .footable.metro-blue {
292
- border-color: #1171a3;
293
- }
294
- .footable.metro-blue > tfoot > tr > th,
295
- .footable.metro-blue > thead > tr > th,
296
- .footable.metro-blue > tfoot > tr > td,
297
- .footable.metro-blue > thead > tr > td {
298
- background-color: #1171a3;
299
- border-color: #1171a3;
300
- }
301
-
302
- .footable {
303
- border-collapse: separate;
304
- border-spacing: 0;
305
- border: 1px solid #cccccc;
306
- -moz-border-radius: 6px;
307
- -webkit-border-radius: 6px;
308
- border-radius: 6px;
309
- font-family: 'trebuchet MS', 'Lucida sans', Arial;
310
- font-size: 14px;
311
- color: #444444;
312
- }
313
- .footable > thead > tr:first-child > th.footable-first-column,
314
- .footable > thead > tr:first-child > td.footable-first-column {
315
- -moz-border-radius: 6px 0 0 0;
316
- -webkit-border-radius: 6px 0 0 0;
317
- border-radius: 6px 0 0 0;
318
- }
319
- .footable > thead > tr:first-child > th.footable-last-column,
320
- .footable > thead > tr:first-child > td.footable-last-column {
321
- -moz-border-radius: 0 6px 0 0;
322
- -webkit-border-radius: 0 6px 0 0;
323
- border-radius: 0 6px 0 0;
324
- }
325
- .footable > thead > tr:first-child > th.footable-first-column.footable-last-column,
326
- .footable > thead > tr:first-child > td.footable-first-column.footable-last-column {
327
- -moz-border-radius: 6px 6px 0 0;
328
- -webkit-border-radius: 6px 6px 0 0;
329
- border-radius: 6px 6px 0 0;
330
- }
331
- .footable > thead > tr > th {
332
- border-left: 1px solid #cccccc;
333
- border-top: 1px solid #cccccc;
334
- padding: 10px;
335
- text-align: left;
336
- }
337
- .footable > thead > tr > th,
338
- .footable > thead > tr > td {
339
- background-color: #dce9f9;
340
- background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc), to(#dce9f9));
341
- background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);
342
- background-image: -moz-linear-gradient(top, #ebf3fc, #dce9f9);
343
- background-image: -ms-linear-gradient(top, #ebf3fc, #dce9f9);
344
- background-image: -o-linear-gradient(top, #ebf3fc, #dce9f9);
345
- background-image: linear-gradient(to bottom, #ebf3fc, #dce9f9);
346
- -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
347
- -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
348
- box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
349
- border-top: none;
350
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
351
- }
352
- .footable > thead > tr > th.footable-first-column,
353
- .footable > thead > tr > td.footable-first-column {
354
- border-left: none;
355
- }
356
- .footable.breakpoint > tbody > tr.footable-row-detail {
357
- background: #eeeeee;
358
- }
359
- .footable.breakpoint > tbody > tr.footable-row-detail > .footable-row-detail-cell {
360
- border-left: none;
361
- }
362
- .footable > tbody img {
363
- vertical-align: middle;
364
- }
365
- .footable > tbody > tr:hover {
366
- background: #fbf8e9;
367
- }
368
- .footable > tbody > tr:last-child > td.footable-first-column {
369
- -moz-border-radius: 0 0 0 6px;
370
- -webkit-border-radius: 0 0 0 6px;
371
- border-radius: 0 0 0 6px;
372
- }
373
- .footable > tbody > tr:last-child > td.footable-last-column {
374
- -moz-border-radius: 0 0 6px 0;
375
- -webkit-border-radius: 0 0 6px 0;
376
- border-radius: 0 0 6px 0;
377
- }
378
- .footable > tbody > tr:last-child > td.footable-first-column.footable-last-column {
379
- -moz-border-radius: 0 0 6px 6px;
380
- -webkit-border-radius: 0 0 6px 6px;
381
- border-radius: 0 0 6px 6px;
382
- }
383
- .footable > tbody > tr > td {
384
- border-top: 1px solid #cccccc;
385
- border-left: 1px solid #cccccc;
386
- padding: 10px;
387
- text-align: left;
388
- }
389
- .footable > tbody > tr > td.footable-first-column {
390
- border-left: none;
391
- }
392
- .footable > tfoot > tr > th,
393
- .footable > tfoot > tr > td {
394
- background-color: #dce9f9;
395
- background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc), to(#dce9f9));
396
- background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);
397
- background-image: -moz-linear-gradient(top, #ebf3fc, #dce9f9);
398
- background-image: -ms-linear-gradient(top, #ebf3fc, #dce9f9);
399
- background-image: -o-linear-gradient(top, #ebf3fc, #dce9f9);
400
- background-image: linear-gradient(to bottom, #ebf3fc, #dce9f9);
401
- -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
402
- -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
403
- box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
404
- border-top: 1px solid #cccccc;
405
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
406
- padding: 10px;
407
- }
@@ -1,3 +0,0 @@
1
- @font-face{font-family:'footable';src:url('fonts/footable.eot');src:url('fonts/footable.eot?#iefix') format('embedded-opentype'),url('fonts/footable.woff') format('woff'),url('fonts/footable.ttf') format('truetype'),url('fonts/footable.svg#footable') format('svg');font-weight:normal;font-style:normal}@media screen and (-webkit-min-device-pixel-ratio:0){@font-face{font-family:'footable';src:url('fonts/footable.svg#footable') format('svg');font-weight:normal;font-style:normal}}.footable{width:100%}.footable.breakpoint>tbody>tr.footable-detail-show>td{border-bottom:0}.footable.breakpoint>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e001"}.footable.breakpoint>tbody>tr:hover:not(.footable-row-detail){cursor:pointer}.footable.breakpoint>tbody>tr>td.footable-cell-detail{background:#eee;border-top:0}.footable.breakpoint>tbody>tr>td>span.footable-toggle{display:inline-block;font-family:'footable';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;padding-right:5px;font-size:14px;color:#888}.footable.breakpoint>tbody>tr>td>span.footable-toggle:before{content:"\e000"}.footable.breakpoint.toggle-circle>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e005"}.footable.breakpoint.toggle-circle>tbody>tr>td>span.footable-toggle:before{content:"\e004"}.footable.breakpoint.toggle-circle-filled>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e003"}.footable.breakpoint.toggle-circle-filled>tbody>tr>td>span.footable-toggle:before{content:"\e002"}.footable.breakpoint.toggle-square>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e007"}.footable.breakpoint.toggle-square>tbody>tr>td>span.footable-toggle:before{content:"\e006"}.footable.breakpoint.toggle-square-filled>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e009"}.footable.breakpoint.toggle-square-filled>tbody>tr>td>span.footable-toggle:before{content:"\e008"}.footable.breakpoint.toggle-arrow>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e00f"}.footable.breakpoint.toggle-arrow>tbody>tr>td>span.footable-toggle:before{content:"\e011"}.footable.breakpoint.toggle-arrow-small>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e013"}.footable.breakpoint.toggle-arrow-small>tbody>tr>td>span.footable-toggle:before{content:"\e015"}.footable.breakpoint.toggle-arrow-circle>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e01b"}.footable.breakpoint.toggle-arrow-circle>tbody>tr>td>span.footable-toggle:before{content:"\e01d"}.footable.breakpoint.toggle-arrow-circle-filled>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e00b"}.footable.breakpoint.toggle-arrow-circle-filled>tbody>tr>td>span.footable-toggle:before{content:"\e00d"}.footable.breakpoint.toggle-arrow-tiny>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e01f"}.footable.breakpoint.toggle-arrow-tiny>tbody>tr>td>span.footable-toggle:before{content:"\e021"}.footable.breakpoint.toggle-arrow-alt>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e017"}.footable.breakpoint.toggle-arrow-alt>tbody>tr>td>span.footable-toggle:before{content:"\e019"}.footable.breakpoint.toggle-medium>tbody>tr>td>span.footable-toggle{font-size:18px}.footable.breakpoint.toggle-large>tbody>tr>td>span.footable-toggle{font-size:24px}.footable>thead>tr>th.footable-sortable:hover{cursor:pointer}.footable>thead>tr>th.footable-sorted>span.footable-sort-indicator:before{content:"\e013"}.footable>thead>tr>th.footable-sorted-desc>span.footable-sort-indicator:before{content:"\e012"}.footable>thead>tr>th>span.footable-sort-indicator{display:inline-block;font-family:'footable';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;padding-left:5px}.footable>thead>tr>th>span.footable-sort-indicator:before{content:"\e022"}.footable>tfoot .pagination{margin:0}.footable.no-paging .hide-if-no-paging{display:none}.footable-row-detail-inner{display:table}.footable-row-detail-row{display:table-row;line-height:1.5em}.footable-row-detail-group{display:block;line-height:2em;font-size:1.2em;font-weight:bold}.footable-row-detail-name{display:table-cell;font-weight:bold;padding-right:.5em}.footable-row-detail-value{display:table-cell}
2
- .footable{border-collapse:separate;border-spacing:0;width:100%;border:3px solid #52b9e9;font-family:"Open Sans",Arial,Helvetica,sans-serif;color:#444;background:#efefef}.footable.breakpoint>tbody>tr.footable-row-detail{background:#eee}.footable.breakpoint>tbody>tr:hover:not(.footable-row-detail){cursor:pointer}.footable.breakpoint>tbody>tr>td.footable-row-detail-cell{background:#fff}.footable>tbody img{vertical-align:middle}.footable>tbody>tr:hover:not(.footable-row-detail){background:#ddd}.footable>tbody>tr:hover:not(.footable-row-detail)>td{color:#000}.footable>tbody>tr:last-child>td{border-bottom:0}.footable>tbody>tr>td{border-bottom:1px solid #ddd;padding:10px;text-align:left}.footable>tbody>tr>td.footable-row-detail-cell,.footable>tbody>tr>td.footable-first-column{border-left:none}.footable>thead>tr>th{border-bottom:1px solid #ddd;padding:10px;text-align:left}.footable>thead>tr>th,.footable>thead>tr>td{background-color:#52b9e9;border:1px solid #52b9e9;color:#fff;border-top:0;font-weight:normal}.footable>thead>tr>th.footable-first-column,.footable>thead>tr>td.footable-first-column{border-left:none}.footable>tfoot>tr>th,.footable>tfoot>tr>td{background-color:#52b9e9;border:1px solid #52b9e9;color:#fff;border-top:0;padding:5px}.footable tfoot .pagination ul{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;vertical-align:middle}.footable tfoot .pagination ul>li>a,.footable tfoot .pagination ul>li>span{border:2px solid transparent;margin:0 3px;color:#fff;background:transparent;padding:1px 5px}.footable tfoot .pagination ul>li.disable>a{color:#888}.footable tfoot .pagination ul>li.active>a{border-color:#fff}.footable tfoot .pagination ul>li:first-child>a,.footable tfoot .pagination ul>li:last-child>a,.footable tfoot .pagination ul>li:first-child>span,.footable tfoot .pagination ul>li:last-child>span{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.footable.metro-red{border-color:#fa3031}.footable.metro-red>tfoot>tr>th,.footable.metro-red>thead>tr>th,.footable.metro-red>tfoot>tr>td,.footable.metro-red>thead>tr>td{background-color:#fa3031;border-color:#fa3031}.footable.metro-purple{border-color:#932ab6}.footable.metro-purple>tfoot>tr>th,.footable.metro-purple>thead>tr>th,.footable.metro-purple>tfoot>tr>td,.footable.metro-purple>thead>tr>td{background-color:#932ab6;border-color:#932ab6}.footable.metro-green{border-color:#43c83c}.footable.metro-green>tfoot>tr>th,.footable.metro-green>thead>tr>th,.footable.metro-green>tfoot>tr>td,.footable.metro-green>thead>tr>td{background-color:#43c83c;border-color:#43c83c}.footable.metro-blue{border-color:#1171a3}.footable.metro-blue>tfoot>tr>th,.footable.metro-blue>thead>tr>th,.footable.metro-blue>tfoot>tr>td,.footable.metro-blue>thead>tr>td{background-color:#1171a3;border-color:#1171a3}
3
- .footable{border-collapse:separate;border-spacing:0;border:1px solid #ccc;-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;font-family:'trebuchet MS','Lucida sans',Arial;font-size:14px;color:#444}.footable>thead>tr:first-child>th.footable-first-column,.footable>thead>tr:first-child>td.footable-first-column{-moz-border-radius:6px 0 0 0;-webkit-border-radius:6px 0 0 0;border-radius:6px 0 0 0}.footable>thead>tr:first-child>th.footable-last-column,.footable>thead>tr:first-child>td.footable-last-column{-moz-border-radius:0 6px 0 0;-webkit-border-radius:0 6px 0 0;border-radius:0 6px 0 0}.footable>thead>tr:first-child>th.footable-first-column.footable-last-column,.footable>thead>tr:first-child>td.footable-first-column.footable-last-column{-moz-border-radius:6px 6px 0 0;-webkit-border-radius:6px 6px 0 0;border-radius:6px 6px 0 0}.footable>thead>tr>th{border-left:1px solid #ccc;border-top:1px solid #ccc;padding:10px;text-align:left}.footable>thead>tr>th,.footable>thead>tr>td{background-color:#dce9f9;background-image:-webkit-gradient(linear,left top,left bottom,from(#ebf3fc),to(#dce9f9));background-image:-webkit-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-moz-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-ms-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-o-linear-gradient(top,#ebf3fc,#dce9f9);background-image:linear-gradient(to bottom,#ebf3fc,#dce9f9);-webkit-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;-moz-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;border-top:0;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.footable>thead>tr>th.footable-first-column,.footable>thead>tr>td.footable-first-column{border-left:none}.footable.breakpoint>tbody>tr.footable-row-detail{background:#eee}.footable.breakpoint>tbody>tr.footable-row-detail>.footable-row-detail-cell{border-left:none}.footable>tbody img{vertical-align:middle}.footable>tbody>tr:hover{background:#fbf8e9}.footable>tbody>tr:last-child>td.footable-first-column{-moz-border-radius:0 0 0 6px;-webkit-border-radius:0 0 0 6px;border-radius:0 0 0 6px}.footable>tbody>tr:last-child>td.footable-last-column{-moz-border-radius:0 0 6px 0;-webkit-border-radius:0 0 6px 0;border-radius:0 0 6px 0}.footable>tbody>tr:last-child>td.footable-first-column.footable-last-column{-moz-border-radius:0 0 6px 6px;-webkit-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px}.footable>tbody>tr>td{border-top:1px solid #ccc;border-left:1px solid #ccc;padding:10px;text-align:left}.footable>tbody>tr>td.footable-first-column{border-left:none}.footable>tfoot>tr>th,.footable>tfoot>tr>td{background-color:#dce9f9;background-image:-webkit-gradient(linear,left top,left bottom,from(#ebf3fc),to(#dce9f9));background-image:-webkit-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-moz-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-ms-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-o-linear-gradient(top,#ebf3fc,#dce9f9);background-image:linear-gradient(to bottom,#ebf3fc,#dce9f9);-webkit-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;-moz-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;border-top:1px solid #ccc;text-shadow:0 1px 0 rgba(255,255,255,0.5);padding:10px}