From f3703baa367152de441b52b49a523ae0d67465fc Mon Sep 17 00:00:00 2001 From: Lukasz Anwajler Date: Sun, 19 Sep 2010 19:13:39 -0500 Subject: [PATCH] Ticket 818: saving reminder --- redakcja/static/css/master.css | 12 ++++++++++++ redakcja/static/js/wiki/view_editor_wysiwyg.js | 9 ++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/redakcja/static/css/master.css b/redakcja/static/css/master.css index b4e08241..bc622745 100644 --- a/redakcja/static/css/master.css +++ b/redakcja/static/css/master.css @@ -304,3 +304,15 @@ img.tabclose { .wers_akap { padding-left: 1em; } + +.saveNotify { + position:absolute; bottom:7px; left:30px; z-index:800; background-color: #E6E6E6; padding:20px; border: 1px solid black; +} + +.notifyTip { + font-size:12px; float:right; +} + +.saveNotify span { + font-weight: bold; +} diff --git a/redakcja/static/js/wiki/view_editor_wysiwyg.js b/redakcja/static/js/wiki/view_editor_wysiwyg.js index a0c962d1..42d91ca1 100644 --- a/redakcja/static/js/wiki/view_editor_wysiwyg.js +++ b/redakcja/static/js/wiki/view_editor_wysiwyg.js @@ -381,6 +381,14 @@ alert('Błąd! ' + text); } }) + + var msg = $("

Twoje zmiany zostały naniesione na tekst źródłowy. Pamiętaj, że aby zmiany zostały utrwalone należy je zapisać!

Ta wiadomość zostanie automatycznie zamknięta za 6 sekund.

"); + $("#base").prepend(msg); + $("#save-button").css({border: '5px solid red'}); + $('#base .saveNotify').fadeOut(6000, function(){ + $(this).remove(); + $("#save-button").css({border: '1px solid black'}); + }); } $('.accept-button', $overlay).click(function(){ @@ -392,7 +400,6 @@ return; } save(); - $(document).unbind('click.blur-overlay'); }); -- 2.20.1