- Fix a bug in print dialog, clicking header was also toggling first checkbox

- Missing translations from Stefan Unverricht
This commit is contained in:
nathangray
2016-12-06 09:45:55 -07:00
parent 81aaaf9675
commit fbba0f2e59
5 changed files with 13 additions and 5 deletions

View File

@@ -384,10 +384,13 @@ var et2_selectbox = (function(){ "use strict"; return et2_inputWidget.extend(
var header_controls = {
check: {
icon_class: 'ui-icon-check',
label: 'Check all',
label: this.egw().lang('Check all'),
click: function(e) {
var all_set = jQuery("input[type='checkbox']",e.data).prop("checked");
jQuery("input[type='checkbox']",e.data).prop("checked", !all_set);
var all_off = false;
jQuery("input[type='checkbox']",e.data).each(function() {
if(!jQuery(this).prop("checked")) all_off = true;
});
jQuery("input[type='checkbox']",e.data).prop("checked", all_off);
}
}
};