diff --git a/src/common.js b/src/common.js index d64992efc4..8a1d7f4bb8 100644 --- a/src/common.js +++ b/src/common.js @@ -2953,20 +2953,18 @@ Sao.common.UserWarningDialog = Sao.class_(Sao.common.WarningDialog, { class_: 'user-warning-dialog', - always: false, - _set_always: function() { - this.always = jQuery(this).prop('checked'); - }, build_dialog: function(message, title, prm) { var dialog = Sao.common.UserWarningDialog._super.build_dialog.call( this, message, title, prm); - dialog.body.append(jQuery('
') - .append(jQuery('', { - 'type': 'checkbox' - }).change(this._set_always.bind(this))) - .append(jQuery('') - .text(Sao.i18n.gettext('Always ignore this warning.'))) - ); + var always = jQuery('', { + 'type': 'checkbox' + }); + dialog.body.append(jQuery('
', { + 'class': 'checkbox', + }).append(jQuery('