Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #3480 from darkwing/1203625-undefined
Browse files Browse the repository at this point in the history
Fix bug 1203625 - Prevent JS error in edit interface
  • Loading branch information
openjck committed Sep 16, 2015
2 parents e176ec2 + ba5f860 commit 602993c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media/js/wiki-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@
$('.btn-save-and-edit').show();

$('#save-and-edit-target').on('load', function () {
notifications[0].success(null, 2000);
if(notifications[0]) notifications[0].success(null, 2000);
notifications.shift();

if (supportsLocalStorage) {
Expand Down

0 comments on commit 602993c

Please sign in to comment.