Corrected (Netbeans?) inserted spaces
This commit is contained in:
parent
e307572e8d
commit
616c5b2681
|
@ -161,7 +161,7 @@ table th .sort-indicator {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
table th:hover .sort-indicator.hidden {
|
table th:hover .sort-indicator.hidden {
|
||||||
width: 10px;
|
width: 10px;
|
||||||
height: 8px;
|
height: 8px;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
FileList.prototype = {
|
FileList.prototype = {
|
||||||
SORT_INDICATOR_ASC_CLASS: 'icon-triangle-s',
|
SORT_INDICATOR_ASC_CLASS: 'icon-triangle-s',
|
||||||
SORT_INDICATOR_DESC_CLASS: 'icon-triangle-n',
|
SORT_INDICATOR_DESC_CLASS: 'icon-triangle-n',
|
||||||
|
|
||||||
id: 'files',
|
id: 'files',
|
||||||
appName: t('files', 'Files'),
|
appName: t('files', 'Files'),
|
||||||
isEmpty: true,
|
isEmpty: true,
|
||||||
|
@ -380,7 +380,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Event handler when clicking on a bread crumb
|
* Event handler when clicking on a bread crumb
|
||||||
*/
|
*/
|
||||||
_onClickBreadCrumb: function(e) {
|
_onClickBreadCrumb: function(e) {
|
||||||
|
@ -908,31 +908,31 @@
|
||||||
* @param sort sort attribute name
|
* @param sort sort attribute name
|
||||||
* @param direction sort direction, one of "asc" or "desc"
|
* @param direction sort direction, one of "asc" or "desc"
|
||||||
*/
|
*/
|
||||||
setSort: function(sort, direction ) {
|
setSort: function(sort, direction) {
|
||||||
var comparator = FileList.Comparators[sort] || FileList.Comparators.name;
|
var comparator = FileList.Comparators[sort] || FileList.Comparators.name;
|
||||||
this._sort = sort;
|
this._sort = sort;
|
||||||
this._sortDirection = (direction === 'desc')?'desc':'asc';
|
this._sortDirection = (direction === 'desc')?'desc':'asc';
|
||||||
this._sortComparator = comparator;
|
this._sortComparator = comparator;
|
||||||
|
|
||||||
if (direction === 'desc') {
|
if (direction === 'desc') {
|
||||||
this._sortComparator = function(fileInfo1, fileInfo2) {
|
this._sortComparator = function(fileInfo1, fileInfo2) {
|
||||||
return -comparator(fileInfo1, fileInfo2);
|
return -comparator(fileInfo1, fileInfo2);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
this.$el.find('thead th .sort-indicator')
|
this.$el.find('thead th .sort-indicator')
|
||||||
.removeClass(this.SORT_INDICATOR_ASC_CLASS)
|
.removeClass(this.SORT_INDICATOR_ASC_CLASS)
|
||||||
.removeClass(this.SORT_INDICATOR_DESC_CLASS)
|
.removeClass(this.SORT_INDICATOR_DESC_CLASS)
|
||||||
.toggleClass('hidden', true)
|
.toggleClass('hidden', true)
|
||||||
.addClass(this.SORT_INDICATOR_DESC_CLASS);
|
.addClass(this.SORT_INDICATOR_DESC_CLASS);
|
||||||
|
|
||||||
this.$el.find('thead th.column-' + sort + ' .sort-indicator')
|
this.$el.find('thead th.column-' + sort + ' .sort-indicator')
|
||||||
.removeClass(this.SORT_INDICATOR_ASC_CLASS)
|
.removeClass(this.SORT_INDICATOR_ASC_CLASS)
|
||||||
.removeClass(this.SORT_INDICATOR_DESC_CLASS)
|
.removeClass(this.SORT_INDICATOR_DESC_CLASS)
|
||||||
.toggleClass('hidden', false)
|
.toggleClass('hidden', false)
|
||||||
.addClass(direction === 'desc' ? this.SORT_INDICATOR_DESC_CLASS : this.SORT_INDICATOR_ASC_CLASS);
|
.addClass(direction === 'desc' ? this.SORT_INDICATOR_DESC_CLASS : this.SORT_INDICATOR_ASC_CLASS);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reloads the file list using ajax call
|
* Reloads the file list using ajax call
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue