Skip to content

Commit

Permalink
Added JS bundles to release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gamboa_at_co.sapo.pt committed May 30, 2013
1 parent 819b2ee commit 341eb17
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 37 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.9
2.0.0
26 changes: 9 additions & 17 deletions js/ink-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -11921,7 +11921,7 @@ Ink.createModule('Ink.UI.Sticky', '1', ['Ink.UI.Aux_1','Ink.Dom.Event_1','Ink.Do
* @author inkdev AT sapo.pt
* @version 1
*/
Ink.createModule('Ink.UI.Table', '1', ['Ink.Net.Ajax_1','Ink.UI.Aux_1','Ink.Dom.Event_1','Ink.Dom.Css_1','Ink.Dom.Element_1','Ink.Dom.Selector_1','Ink.Util.Array_1'], function(Ajax, Aux, Event, Css, Element, Selector, InkArray ) {
Ink.createModule('Ink.UI.Table', '1', ['Ink.Net.Ajax_1','Ink.UI.Aux_1','Ink.Dom.Event_1','Ink.Dom.Css_1','Ink.Dom.Element_1','Ink.Dom.Selector_1','Ink.Util.Array_1','Ink.Util.String_1'], function(Ajax, Aux, Event, Css, Element, Selector, InkArray, InkString ) {
'use strict';

/**
Expand Down Expand Up @@ -12086,6 +12086,7 @@ Ink.createModule('Ink.UI.Table', '1', ['Ink.Net.Ajax_1','Ink.UI.Aux_1','Ink.Dom.

/**
* Set pagination if defined
*
*/
if( ("pageSize" in this._options) && (typeof this._options.pageSize !== 'undefined') ){
/**
Expand Down Expand Up @@ -12149,17 +12150,17 @@ Ink.createModule('Ink.UI.Table', '1', ['Ink.Net.Ajax_1','Ink.UI.Aux_1','Ink.Dom.
for( var prop in this._sortableFields ){
if( prop !== ('col_' + index) ){
this._sortableFields[prop] = 'none';
this._headers[prop.replace('col_','')].innerHTML = this._headers[prop.replace('col_','')].innerText;
this._headers[prop.replace('col_','')].innerHTML = InkString.stripTags(this._headers[prop.replace('col_','')].innerHTML);
}
}

if( this._sortableFields['col_'+index] === 'asc' )
{
this._sortableFields['col_'+index] = 'desc';
this._headers[index].innerHTML = this._headers[index].innerText + '<i class="icon-caret-down"></i>';
this._headers[index].innerHTML = InkString.stripTags(this._headers[index].innerHTML) + '<i class="icon-caret-down"></i>';
} else {
this._sortableFields['col_'+index] = 'asc';
this._headers[index].innerHTML = this._headers[index].innerText + '<i class="icon-caret-up"></i>';
this._headers[index].innerHTML = InkString.stripTags(this._headers[index].innerHTML) + '<i class="icon-caret-up"></i>';

}

Expand All @@ -12173,18 +12174,9 @@ Ink.createModule('Ink.UI.Table', '1', ['Ink.Net.Ajax_1','Ink.UI.Aux_1','Ink.Dom.

if( (this._sortableFields['col_'+index] === 'desc') && (this._options.allowResetSorting && (this._options.allowResetSorting.toString() === 'true')) )
{
this._headers[index].innerHTML = this._headers[index].innerText;
this._headers[index].innerHTML = InkString.stripTags(this._headers[index].innerHTML);
this._sortableFields['col_'+index] = 'none';

// var found = false;
// for(var prop in this._sortableFields ){
// if( this._sortableFields[prop] === 'asc' || this._sortableFields[prop] === 'desc' ){
// found = true;
// this._sort(prop.replace('col_',''));
// break;
// }
// }

// if( !found ){
this._data = this._originalData.slice(0);
// }
Expand All @@ -12193,7 +12185,7 @@ Ink.createModule('Ink.UI.Table', '1', ['Ink.Net.Ajax_1','Ink.UI.Aux_1','Ink.Dom.
for( var prop in this._sortableFields ){
if( prop !== ('col_' + index) ){
this._sortableFields[prop] = 'none';
this._headers[prop.replace('col_','')].innerHTML = this._headers[prop.replace('col_','')].innerText;
this._headers[prop.replace('col_','')].innerHTML = InkString.stripTags(this._headers[prop.replace('col_','')].innerHTML);
}
}

Expand All @@ -12203,10 +12195,10 @@ Ink.createModule('Ink.UI.Table', '1', ['Ink.Net.Ajax_1','Ink.UI.Aux_1','Ink.Dom.
{
this._data.reverse();
this._sortableFields['col_'+index] = 'desc';
this._headers[index].innerHTML = this._headers[index].innerText + '<i class="icon-caret-down"></i>';
this._headers[index].innerHTML = InkString.stripTags(this._headers[index].innerHTML) + '<i class="icon-caret-down"></i>';
} else {
this._sortableFields['col_'+index] = 'asc';
this._headers[index].innerHTML = this._headers[index].innerText + '<i class="icon-caret-up"></i>';
this._headers[index].innerHTML = InkString.stripTags(this._headers[index].innerHTML) + '<i class="icon-caret-up"></i>';

}
}
Expand Down
Loading

0 comments on commit 341eb17

Please sign in to comment.