summaryrefslogtreecommitdiff
path: root/share/www/browse
diff options
context:
space:
mode:
Diffstat (limited to 'share/www/browse')
-rw-r--r--share/www/browse/database.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/share/www/browse/database.html b/share/www/browse/database.html
index 0dd086db..fe17a47b 100644
--- a/share/www/browse/database.html
+++ b/share/www/browse/database.html
@@ -32,6 +32,13 @@ specific language governing permissions and limitations under the License.
if (window != parent) {
parent.updateNavigation(location.pathname,
encodeURIComponent(location.search.split("/", 2)[0]));
+ var recentDbs = $.cookies.get("recent", "").split(",");
+ if ($.inArray(page.db.name, recentDbs) == -1) {
+ recentDbs.unshift(page.db.name);
+ if (recentDbs.length > 10) recentDbs.length = 10;
+ $.cookies.set("recent", recentDbs.join(","), parent.location.pathname);
+ parent.updateRecentDatabasesList();
+ }
}
$(document).ready(function() {