From 57caee1fa7021ba986a084832f7413e492dd3223 Mon Sep 17 00:00:00 2001 From: Heiko Kernbach Date: Fri, 21 Feb 2014 14:21:01 +0100 Subject: [PATCH] display status when document is saved --- js/apps/system/aardvark/frontend/css/documentView.css | 8 ++++++++ .../aardvark/frontend/js/templates/documentView.ejs | 1 + js/apps/system/aardvark/frontend/js/views/documentView.js | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/js/apps/system/aardvark/frontend/css/documentView.css b/js/apps/system/aardvark/frontend/css/documentView.css index 6276420c76..4f591232e8 100644 --- a/js/apps/system/aardvark/frontend/css/documentView.css +++ b/js/apps/system/aardvark/frontend/css/documentView.css @@ -151,3 +151,11 @@ table.dataTable thead th { #saveDocumentButton { margin-top: 5px; } + +#showSaveState { + display:none; + color: green; + float:right; + margin-top: 10px; + font-weight: 300; +} diff --git a/js/apps/system/aardvark/frontend/js/templates/documentView.ejs b/js/apps/system/aardvark/frontend/js/templates/documentView.ejs index c5bb22531e..19bad37246 100644 --- a/js/apps/system/aardvark/frontend/js/templates/documentView.ejs +++ b/js/apps/system/aardvark/frontend/js/templates/documentView.ejs @@ -8,6 +8,7 @@
+
Saved...
diff --git a/js/apps/system/aardvark/frontend/js/views/documentView.js b/js/apps/system/aardvark/frontend/js/views/documentView.js index ff9c93764b..0bee072b95 100644 --- a/js/apps/system/aardvark/frontend/js/views/documentView.js +++ b/js/apps/system/aardvark/frontend/js/views/documentView.js @@ -80,6 +80,10 @@ return; } } + + if (result === true) { + $('#showSaveState').fadeIn(1000).fadeOut(1000); + } }, breadcrumb: function () {