nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit 1a4c154ca27f119d8c76197392b0bfc55dcdac77
parent 2dc01daf505c0fd03fea9f61df7006ea6b80d0ca
Author: Sergey Orlov <wladimirych@gmail.com>
Date:   Sun, 14 Jun 2020 22:09:53 +0200

popup-window: add russian text, use wrapper for alertify

related to #162

Diffstat:
Msrc/lib/popup-window/index.js | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/lib/popup-window/index.js b/src/lib/popup-window/index.js @@ -1,4 +1,4 @@ -import alertify from 'alertify.js'; +import {notify} from '~/lib/notifications'; function openPopupWindow(url, width, uniqName = null) { var left, top, height, @@ -23,9 +23,11 @@ function openPopupWindow(url, width, uniqName = null) { features += ',resizable,scrollbars'; var newWindow = window.open(url, uniqName, features); if (!newWindow || newWindow.closed) { - alertify.alert('Pop-up blocked by browser.\n\n' + + notify('Всплывающее окно заблокировано браузером.\n' + + 'Для полноценной работы сайта необходимо разрешить всплывающие окна в настройках браузера для сайта.\n\n' + + 'Pop-up window was blocked by the browser.\n' + 'If you want to use the full functionality of this site, ' + - 'turn off blocking pop-up in the browser settings for this site.'); + 'turn off blocking pop-ups in the browser settings for this site.'); } else { newWindow.focus(); }