- new filter for signature groups (e.g. Combat, Data, WH,..), closed #376

This commit is contained in:
Mark Friedrich
2018-08-04 17:32:08 +02:00
parent 01cd22752c
commit 31e9201e00
5 changed files with 12 additions and 4 deletions

View File

@@ -60,6 +60,7 @@ define([
// xEditable
editableDescriptionInputClass: 'pf-editable-description', // class for "description" textarea
editableUnknownInputClass: 'pf-editable-unknown', // class for input fields (e.g. checkboxes) with "unknown" status
signatureGroupsLabels: Util.getSignatureGroupInfo('label'),
signatureGroupsNames: Util.getSignatureGroupInfo('name')
@@ -1849,7 +1850,7 @@ define([
let promiseStore = MapUtil.getLocaleData('character', Util.getCurrentCharacterId());
promiseStore.then(data => {
let filterButton = tableApi.button('tableTools', 'filterGroup:name').node();
let prependOptions = [{value: '0', text: 'undefined'}];
let prependOptions = [{value: '0', text: 'unknown'}];
let sourceOptions = [];
let selectedValues = [];
@@ -1880,6 +1881,7 @@ define([
value: selectedValues,
source: sourceOptions,
prepend: prependOptions,
inputclass: config.editableUnknownInputClass,
display: function(value, sourceData){
// update filter button label
let html = '<i class="fa fa-filter"></i>group';

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -60,6 +60,7 @@ define([
// xEditable
editableDescriptionInputClass: 'pf-editable-description', // class for "description" textarea
editableUnknownInputClass: 'pf-editable-unknown', // class for input fields (e.g. checkboxes) with "unknown" status
signatureGroupsLabels: Util.getSignatureGroupInfo('label'),
signatureGroupsNames: Util.getSignatureGroupInfo('name')
@@ -1849,7 +1850,7 @@ define([
let promiseStore = MapUtil.getLocaleData('character', Util.getCurrentCharacterId());
promiseStore.then(data => {
let filterButton = tableApi.button('tableTools', 'filterGroup:name').node();
let prependOptions = [{value: '0', text: 'undefined'}];
let prependOptions = [{value: '0', text: 'unknown'}];
let sourceOptions = [];
let selectedValues = [];
@@ -1880,6 +1881,7 @@ define([
value: selectedValues,
source: sourceOptions,
prepend: prependOptions,
inputclass: config.editableUnknownInputClass,
display: function(value, sourceData){
// update filter button label
let html = '<i class="fa fa-filter"></i>group';

View File

@@ -193,6 +193,10 @@ a{
}
}
}
.pf-editable-unknown[value='0'] + span {
color: $red;
}
}
}
select:active, select:hover {