Posting Success Notifications fix

This commit is contained in:
Jordan Bates 2013-05-01 16:44:54 -07:00
parent 7990441863
commit a1e52052f3
5 changed files with 13 additions and 8 deletions

View File

@ -1,3 +1,6 @@
seaweedchan:
- Fix QR not clearing on submit with Posting Success Notifications disabled
### 1.1.7 - 2013-05-01
seaweedchan:
- External image embedding

View File

@ -5797,9 +5797,9 @@
QR.error(err);
return;
}
QR.cleanNotifications();
h1 = $('h1', tmpDoc);
if (Conf['Posting Success Notifications']) {
h1 = $('h1', tmpDoc);
QR.cleanNotifications();
QR.notifications.push(new Notification('success', h1.textContent, 5));
}
QR.persona.set(post);

View File

@ -5818,9 +5818,9 @@
QR.error(err);
return;
}
QR.cleanNotifications();
h1 = $('h1', tmpDoc);
if (Conf['Posting Success Notifications']) {
h1 = $('h1', tmpDoc);
QR.cleanNotifications();
QR.notifications.push(new Notification('success', h1.textContent, 5));
}
QR.persona.set(post);

View File

@ -5796,9 +5796,9 @@
QR.error(err);
return;
}
QR.cleanNotifications();
h1 = $('h1', tmpDoc);
if (Conf['Posting Success Notifications']) {
h1 = $('h1', tmpDoc);
QR.cleanNotifications();
QR.notifications.push(new Notification('success', h1.textContent, 5));
}
QR.persona.set(post);

View File

@ -1102,10 +1102,12 @@ QR =
QR.status()
QR.error err
return
QR.cleanNotifications()
h1 = $ 'h1', tmpDoc
if Conf['Posting Success Notifications']
h1 = $ 'h1', tmpDoc
QR.cleanNotifications()
QR.notifications.push new Notification 'success', h1.textContent, 5
QR.persona.set post