Permalink
Browse files

Notification Cookie path fix

  • Loading branch information...
bpocallaghan committed Jun 28, 2017
1 parent 53381b6 commit 3f5a58e9e0361d213fd4c30c0d5d7a194ff002df
@@ -14,7 +14,7 @@ class EventServiceProvider extends ServiceProvider
*/
protected $listen = [
// log actions
'App\Events\ActionWasTriggered' => [
'App\Events\ActivityWasTriggered' => [
'App\Listeners\SaveActivity',
],
'App\Events\ContactUsFeedback' => [
@@ -14,7 +14,7 @@ function getHeaderNotifications()
for (var i = 0; i < cookie.length; i++) {
items.push({'id': cookie[i]['id'], 'read': true});
}
$.cookie(type, items, {expires: 2});
$.cookie(type, items, {expires: 2, path: '/admin'});
$('#js-' + type + '-badge').hide();
}
}
@@ -3,7 +3,16 @@
@section('content')
<div class="well well-sm bg-gray-light">
<p><strong>Note</strong>: uBlock Origin browser extension block the '<strong>/api/analtyics</strong>' ajax to get the google analytics</p>
<ul>
<li><strong>uBlock Origin</strong> browser extension block the '<strong>/api/analtyics</strong>' ajax to
get the google analytics
</li>
<li>
<a target="_blank" href="https://github.com/bpocallaghan/impersonate">Impersonation</a>.
Go <a href="/admin/settings/admin/users">here</a> and click on the 'impersonate
user' action
</li>
</ul>
</div>
@include('admin.partials.boxes.dashboard_header')
@@ -39,7 +39,7 @@
</a>
<ul class="dropdown-menu">
<li>
<ul id="js-actions-list" class="menu">
<ul id="js-activities-list" class="menu">
</ul>
</li>

0 comments on commit 3f5a58e

Please sign in to comment.