Fix: use messageBox

This commit is contained in:
eight 2017-11-09 06:30:48 +08:00
parent 9d1b0884e5
commit 3c5136171e

View File

@ -1,4 +1,4 @@
/* global regExpTester debounce */
/* global regExpTester debounce messageBox */
'use strict';
function createAppliesToLineWidget(cm) {
@ -259,7 +259,11 @@ function createAppliesToLineWidget(cm) {
let from;
let to;
if (applies.length < 2) {
alert('Can\'t remove last applies-to');
messageBox({
title: 'Error',
contents: 'Can\'t remove last applies-to',
buttons: [t('confirmClose')]
});
return;
}
if (i === 0) {