forked from 0x2620/pandora
update changelog dialog
This commit is contained in:
parent
bdaf477a38
commit
8ec99ddef7
1 changed files with 9 additions and 5 deletions
|
@ -26,7 +26,8 @@ pandora.ui.changelogDialog = function() {
|
||||||
items: [
|
items: [
|
||||||
{id: 'all', title: Ox._('Find: All')},
|
{id: 'all', title: Ox._('Find: All')},
|
||||||
{id: 'user', title: Ox._('Find: User')},
|
{id: 'user', title: Ox._('Find: User')},
|
||||||
{id: 'url', title: Ox._('Find: ID')}
|
{id: 'action', title: Ox._('Find: Action')},
|
||||||
|
{id: 'changeid', title: Ox._('Find: ID')}
|
||||||
],
|
],
|
||||||
overlap: 'right',
|
overlap: 'right',
|
||||||
type: 'image',
|
type: 'image',
|
||||||
|
@ -235,10 +236,13 @@ pandora.ui.changelogDialog = function() {
|
||||||
|
|
||||||
function updateList(key, value) {
|
function updateList(key, value) {
|
||||||
var query = {
|
var query = {
|
||||||
conditions: [].concat(
|
conditions: key == 'all' ? [
|
||||||
key != 'changeid' ? [{key: 'user', value: value, operator: '='}] : [],
|
{key: 'user', value: value, operator: '='},
|
||||||
key != 'user' ? [{key: 'changeid', value: value, operator: '='}] : []
|
{key: 'action', value: value, operator: '='},
|
||||||
),
|
{key: 'changeid', value: value, operator: '='}
|
||||||
|
] : [
|
||||||
|
{key: key, value: value, operator: '='}
|
||||||
|
],
|
||||||
operator: key == 'all' ? '|' : '&'
|
operator: key == 'all' ? '|' : '&'
|
||||||
};
|
};
|
||||||
$list.options({
|
$list.options({
|
||||||
|
|
Loading…
Reference in a new issue