1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

Fix forum reply JS dependency

This commit is contained in:
SecretR
2015-12-15 17:49:20 +02:00
parent f0f992c3b7
commit df7e69031c

View File

@@ -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;
}