From 214ee521f0414c51c2fd8314e5941ac8c2a9f087 Mon Sep 17 00:00:00 2001
From: exane <raco0n@gmx.de>
Date: Wed, 1 Jul 2015 09:17:29 +0200
Subject: [PATCH] modify notification duration

---
 client/js/client.js | 2 +-
 public/Config.js    | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/client/js/client.js b/client/js/client.js
index 9e2bafb..e192cab 100644
--- a/client/js/client.js
+++ b/client/js/client.js
@@ -916,7 +916,7 @@ let Notification = Backbone.View.extend({
   },
   show: function(){
     let $alert = this.$el.find(".alert");
-    $alert.slideDown(600).delay(2000).queue(this.hide.bind(this));
+    $alert.slideDown(600).delay(Config.Gwent.notification_duration).queue(this.hide.bind(this));
 
   },
   hide: function(){
diff --git a/public/Config.js b/public/Config.js
index f849143..4811e41 100644
--- a/public/Config.js
+++ b/public/Config.js
@@ -7,6 +7,10 @@ Config.Server = {
   secure: false
 }
 
+Config.Gwent = {
+  notification_duration: 4000
+}
+
 Config.Site = {
   base: "/gwent-online/site/public"
 }
\ No newline at end of file