From f3c240156bbce0dd5fab181a606436e0236c43b9 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sat, 28 Jan 2017 14:20:48 +0000 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20modal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/my.js | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/static/js/my.js b/static/js/my.js index 96b813f..cfb606b 100644 --- a/static/js/my.js +++ b/static/js/my.js @@ -1,20 +1,13 @@ -function errShow(errContent) { - //window.history.back(); - - $('#modContent').html('\ -\ -'); +function show_Modal(title, content, type_class){ + $('#modContent').html(''+content); $('#modFrm').modal(); +} +function errShow(errContent) { + show_Modal('Ошибка', '', 'warning'); } $(document).ajaxError(function (ev, jqXHR, ajaxSettings, thrownError) {