5 Commits

3 changed files with 20 additions and 5 deletions

View File

@@ -6,3 +6,4 @@ d14041daa7bbbd37ea2ff47aa978b9595af67ca3 release-1.1.1
7278eb0d067d8ed2a653de6a1feeeb7f76fb9891 release-1.1.2
6cbd9d59630372c0dff430e3dc6c1fbd7dcee734 release-1.1.3
76c178b8f27ec894e79b8f73649fcb3e45a73729 release-1.1.4
0eeab5594ba4d683e6a268ef971675c73b226bd0 release-1.2.0

View File

@@ -13,6 +13,11 @@ Tags: nmdc
=CHANGELOG=
2017-10-16 1.2.1
- Enhancement: Increase scrollback buffer size
- Fix an issue with missing `contented` upload link once logged in
- Fix a cosmetic issue with `(0)` appearing in page title
2017-10-15 1.2.0
- Feature: Add `contented` integration (set `app.contented_server` in config file)
- Fix a cosmetic issue with the menu icon on devices without unicode font coverage

View File

@@ -4,7 +4,7 @@
"use strict";
var SENTINEL_PASSWORD = "************";
var CHAT_SCROLLBACK_LIMIT = 50; // Once over 2x $limit, the first $limit will be trimmed off the list
var CHAT_SCROLLBACK_LIMIT = 200; // Once over 2x $limit, the first $limit will be trimmed off the list
var EXTERN_ROOT = window.location.protocol + "//" + window.location.host + "/";
var el = function(s) {
@@ -690,6 +690,13 @@ var menu = new MenuList(el("#menubutton"));
menu.reset = function() {
this.clear();
if (contented_url.length > 0) {
menu.add("Upload", function() {
contented_load();
});
}
this.add(joinparts_getstr(), toggle_joinparts);
this.add(desktop_notifications_fmtstr(), desktop_notifications_toggle);
this.add(warnonclose_fmtstr(), warnonclose_toggle);
@@ -789,7 +796,11 @@ var updateTitle = function() {
prefix = "[NEW PM] "
}
document.title = prefix + hub_hubname + " ("+userlist.count()+")"
var suffix = "";
if (userlist.count() > 0) {
suffix = " ("+userlist.count()+")";
}
document.title = prefix + hub_hubname + suffix;
};
var sock = {};
@@ -1176,9 +1187,7 @@ window.onload = function() {
});
sock.on('contented', function(url) {
contented_url = url;
menu.add("Upload", function() {
contented_load();
});
menu.reset(); // sent before login
});
};