FIX: fix saving and displaying menu with non-existing pages

This commit is contained in:
Michal Kváček
2016-07-22 16:30:20 +02:00
parent bce98e6eaf
commit b89941b909
4 changed files with 32 additions and 22 deletions
+2 -1
View File
@@ -10,5 +10,6 @@ return [
'new' => 'New menu',
'edit' => 'Edit menu',
'preview' => 'Menu preview',
'availablePages' => 'Available pages'
'availablePages' => 'Available pages',
'noLinks' => 'Cannot save menu without any link!',
];
@@ -99,7 +99,7 @@
// check if menu is not empty
if (i == 0) {
alert ('@lang('widget/menu.noLinks')');
alert ('@lang('widgets/menu.noLinks')');
return false;
}