diff --git a/app/static/js/app.js b/app/static/js/app.js
index 10eb513..0a59cea 100755
--- a/app/static/js/app.js
+++ b/app/static/js/app.js
@@ -63,13 +63,34 @@ function generateTitle(elem) {
}
$(function() {
- $("#tabs").tabs().addClass("ui-tabs-vertical ui-helper-clearfix");
+ var index = 'ui-tabs-active';
+// Define friendly data store name
+var dataStore = window.sessionStorage;
+var oldIndex = 0;
+// Start magic!
+try {
+ // getter: Fetch previous value
+ oldIndex = dataStore.getItem(index);
+} catch(e) {}
+
+ $("#tabs").tabs({
+ active: oldIndex,
+ activate: function(event, ui) {
+ // Get future value
+ var newIndex = ui.newTab.parent().children().index(ui.newTab);
+ // Set future value
+ try {
+ dataStore.setItem( index, newIndex );
+ } catch(e) {}
+ }
+ });
+
+ $("#tabs").addClass("ui-tabs-vertical ui-helper-clearfix");
$("#tabs li").removeClass("ui-corner-top").addClass("ui-corner-left");
});
-
$(".no_cover").each(function() {
var string = $(this).attr('id')
var randomColor = colorHash(string).rgb
@@ -201,7 +222,7 @@ var btn = document.getElementById("myBtn");
// Get the element that closes the modal
var span = document.getElementsByClassName("close")[0];
-// When the user clicks on the button, open the modal
+// When the user clicks on the button, open the modal
btn.onclick = function() {
modal.style.display = "block";
}
diff --git a/app/templates/about.html b/app/templates/about.html
index 67aae18..67ab4db 100755
--- a/app/templates/about.html
+++ b/app/templates/about.html
@@ -6,13 +6,14 @@
XPPL is a project aimed at people who are studying the field of media culture, or as we like to call them: knowledge comrades.
-This digital library gathers all the books and articles floating around on the shelves of the Piet Zwart Institute, and our hard drives and memory sticks, so that they can be shared, annotated and grouped together into stacks...
+This digital library gathers all the books and articles floating around on the shelves of the Piet Zwart Institute, and our hard drives and memory sticks, so that they can be shared, annotated and grouped together into stacks... Its web interface hosts a curated catalogue of books and articles, and its distributed architecture provides instances for uploading and downloading.
- Its web interface hosts a curated catalogue of books and articles, and its distributed architecture provides instances for uploading and downloading.
+ It starts at XPUB, but can go anywhere we want it to.
- It starts at XPUB, but can go anywhere we want it to.
diff --git a/app/templates/add_stack.html b/app/templates/add_stack.html index c960eb3..5f9a8f0 100644 --- a/app/templates/add_stack.html +++ b/app/templates/add_stack.html @@ -22,12 +22,26 @@ {{form.hidden_tag()}} |
---|