diff --git a/loleaflet/po/templates/loleaflet-ui.pot b/loleaflet/po/templates/loleaflet-ui.pot index ee64f70ada..b1ea650de1 100644 --- a/loleaflet/po/templates/loleaflet-ui.pot +++ b/loleaflet/po/templates/loleaflet-ui.pot @@ -202,6 +202,7 @@ msgstr "" #: admin/admin.strings.js:51 src/control/Control.AlertDialog.js:25 #: src/control/Signing.js:608 +#: src/control/Parts.js:376 msgid "Close" msgstr "" @@ -305,6 +306,10 @@ msgstr "" msgid " s" msgstr "" +#: src/control/Parts.js:377 +msgid "Show Selected Sheets" +msgstr "" + #: src/control/ColorPicker.js:129 msgid "No color" msgstr "" diff --git a/loleaflet/src/control/Parts.js b/loleaflet/src/control/Parts.js index 0e52e74721..b0147882b0 100644 --- a/loleaflet/src/control/Parts.js +++ b/loleaflet/src/control/Parts.js @@ -3,7 +3,7 @@ * Document parts switching and selecting handler */ -/* global vex */ +/* global vex $ _ */ L.Map.include({ setPart: function (part, external, calledFromSetPartHandler) { @@ -370,8 +370,12 @@ L.Map.include({ } var socket_ = this._socket; - vex.dialog.confirm({ + vex.dialog.open({ unsafeMessage: container.outerHTML, + buttons: [ + $.extend({}, vex.dialog.buttons.NO, { text: _('Close') }), + $.extend({}, vex.dialog.buttons.YES, { text: _('Show Selected Sheets') }) + ], callback: function (value) { if (value === true) { var checkboxList = document.querySelectorAll('input[id^="hidden-part-checkbox"]');