From 8ec99ddef780b342b79876561deebbdce5b08378 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 17 Dec 2014 12:54:04 +0000 Subject: [PATCH] update changelog dialog --- static/js/changelogDialog.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/static/js/changelogDialog.js b/static/js/changelogDialog.js index f97ecd4da..1686e3019 100644 --- a/static/js/changelogDialog.js +++ b/static/js/changelogDialog.js @@ -26,7 +26,8 @@ pandora.ui.changelogDialog = function() { items: [ {id: 'all', title: Ox._('Find: All')}, {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', type: 'image', @@ -235,10 +236,13 @@ pandora.ui.changelogDialog = function() { function updateList(key, value) { var query = { - conditions: [].concat( - key != 'changeid' ? [{key: 'user', value: value, operator: '='}] : [], - key != 'user' ? [{key: 'changeid', value: value, operator: '='}] : [] - ), + conditions: key == 'all' ? [ + {key: 'user', value: value, operator: '='}, + {key: 'action', value: value, operator: '='}, + {key: 'changeid', value: value, operator: '='} + ] : [ + {key: key, value: value, operator: '='} + ], operator: key == 'all' ? '|' : '&' }; $list.options({