From 579943157207f09c672b6a05b6d5d14a2146e112 Mon Sep 17 00:00:00 2001 From: Alfred Egger Date: Wed, 19 Jun 2019 19:31:41 +0200 Subject: [PATCH] Fix menu --- js/menu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/menu.js b/js/menu.js index 960bf2d..19ef0fe 100644 --- a/js/menu.js +++ b/js/menu.js @@ -97,7 +97,7 @@ var ScannerMenuPlugin = { if (callback !== undefined) { callback(false, plugin.formArrayToObject($('form', $dlg).serializeArray())); } - $(dialogId).ocdialog(t('scanner', 'close')); + $(dialogId).ocdialog('close'); } }, { text: t('scanner', 'Yes'), @@ -105,7 +105,7 @@ var ScannerMenuPlugin = { if (callback !== undefined) { callback(true, plugin.formArrayToObject($('form', $dlg).serializeArray())); } - $(dialogId).ocdialog(t('scanner', 'close')); + $(dialogId).ocdialog('close'); }, defaultButton: true }