From: Lukasz Anwajler Date: Mon, 29 Nov 2010 23:20:12 +0000 (-0600) Subject: Unobtrusive reminder about unsaved changes in document. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/77f5f5a80c712f09605140d215551ada7699834d Unobtrusive reminder about unsaved changes in document. --- diff --git a/redakcja/static/css/master.css b/redakcja/static/css/master.css index 84c1ca53..51e38876 100644 --- a/redakcja/static/css/master.css +++ b/redakcja/static/css/master.css @@ -335,7 +335,15 @@ img.tabclose { } .saveNotify { - position:absolute; bottom:7px; left:30px; z-index:800; background-color: #E6E6E6; padding:20px; border: 1px solid black; + position:absolute; + top:22px; + right:7px; + z-index:800; + background-color: #E6E6E6; + padding:10px; + border: 1px solid black; + border-radius: 5px; + -moz-border-radius: 15px; } .notifyTip { diff --git a/redakcja/static/js/wiki/view_editor_wysiwyg.js b/redakcja/static/js/wiki/view_editor_wysiwyg.js index a4dc874c..ab0c9889 100644 --- a/redakcja/static/js/wiki/view_editor_wysiwyg.js +++ b/redakcja/static/js/wiki/view_editor_wysiwyg.js @@ -467,12 +467,10 @@ } }) - 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.

"); + var msg = $("

Pamiętaj, żeby zapisać swoje zmiany.

"); $("#base").prepend(msg); - $("#save-button").css({border: '2px solid #801000', backgroundColor: '#E1C1C1'}); - $('#base .saveNotify').fadeOut(7000, function(){ + $('#base .saveNotify').fadeOut(3000, function(){ $(this).remove(); - $("#save-button").css({border: '1px solid black'}); }); }