Generate more descriptive text when no value is matched

This commit is contained in:
Łukasz Mierzwa
2017-04-22 17:32:43 -07:00
parent 020b1a2728
commit e740d5ea0c
2 changed files with 13 additions and 11 deletions

View File

@@ -174,16 +174,18 @@ var UI = (function(params) {
modal.find(".modal-body").html(
Templates.Render("silenceForm", {labels: labels})
);
$(".selectpicker").selectpicker({
iconBase: 'fa',
tickIcon: 'fa-check',
width: 'fit',
actionsBox: true,
selectAllText: 'All',
deselectAllText: 'None',
noneSelectedText: 'No label selected',
multipleSeparator: ' ',
selectedTextFormat: 'count > 2'
$.each($(".selectpicker"), function(i, elem) {
$(elem).selectpicker({
iconBase: 'fa',
tickIcon: 'fa-check',
width: 'fit',
actionsBox: true,
selectAllText: 'All',
deselectAllText: 'None',
noneSelectedText: $(this).data('label-key') + ": none",
multipleSeparator: ' ',
selectedTextFormat: 'count > 1'
});
});
$('.datetime-picker').datetimepicker({
format: "YYYY-MM-DD HH:mm",

File diff suppressed because one or more lines are too long