annotation folder: improve 'no items' message when range is not 'all'

This commit is contained in:
rolux 2013-03-08 16:33:13 +05:30
parent c8135f4556
commit c5f75d98c9

View file

@ -267,7 +267,11 @@ Ox.AnnotationFolder = function(options, self) {
: null,
highlight: self.options.highlight,
items: self.annotations,
placeholder: 'No ' + self.options.title,
placeholder: 'No ' + self.options.title + (
self.options.range == 'position' ? ' at Current Position'
: self.options.range == 'selection' ? ' in Current Selection'
: ''
),
selected: self.options.selected,
separator: ';',
sort: self.sort,