From df7e69031c91d45330482504678b70f1a8622e2c Mon Sep 17 00:00:00 2001 From: SecretR Date: Tue, 15 Dec 2015 17:49:20 +0200 Subject: [PATCH] Fix forum reply JS dependency --- e107_plugins/forum/forum_class.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/e107_plugins/forum/forum_class.php b/e107_plugins/forum/forum_class.php index e593aca52..ccc926f4c 100644 --- a/e107_plugins/forum/forum_class.php +++ b/e107_plugins/forum/forum_class.php @@ -58,11 +58,15 @@ $(document).ready(function() } // http://nijikokun.github.io/bootstrap-notify/ - $('#uiAlert').notify({ - type: alertType, - message: { text: d.msg }, - fadeOut: { enabled: true, delay: 3000 } - }).show(); + // fix - only if there + if(jQuery().notify) { + $('#uiAlert').notify({ + type: alertType, + message: { text: d.msg }, + fadeOut: { enabled: true, delay: 3000 } + }).show(); + } + // alert(d.msg); } @@ -83,6 +87,7 @@ $(document).ready(function() $(d.html).appendTo("#forum-viewtopic").hide().slideDown(1000); } + $('#forum-quickreply-text').val(''); return; }