fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of github.com:fnp/wolnelektury
[wolnelektury.git]
/
wolnelektury
/
templates
/
lessons
/
document_list.html
diff --git
a/wolnelektury/templates/lessons/document_list.html
b/wolnelektury/templates/lessons/document_list.html
index
9d30d51
..
d8564a5
100644
(file)
--- a/
wolnelektury/templates/lessons/document_list.html
+++ b/
wolnelektury/templates/lessons/document_list.html
@@
-1,5
+1,5
@@
-{% load i18n %}
{% extends "base.html" %}
{% extends "base.html" %}
+{% load i18n %}
{% load catalogue_tags chunks %}
{% block bodyid %}document-list-body{% endblock %}
{% load catalogue_tags chunks %}
{% block bodyid %}document-list-body{% endblock %}
@@
-17,9
+17,9
@@
}
return false;
});
}
return false;
});
-
+
var lastHash = null;
var lastHash = null;
-
+
function checkHash() {
if (document.location.hash != lastHash) {
lastHash = document.location.hash;
function checkHash() {
if (document.location.hash != lastHash) {
lastHash = document.location.hash;
@@
-28,7
+28,7
@@
$('#document-list a').removeClass('active');
documentLink.addClass('active');
};
$('#document-list a').removeClass('active');
documentLink.addClass('active');
};
-
+
if ($('#document-detail').attr('data-hash') != lastHash) {
$('#document-detail')
.attr('data-hash', lastHash)
if ($('#document-detail').attr('data-hash') != lastHash) {
$('#document-detail')
.attr('data-hash', lastHash)
@@
-37,10
+37,10
@@
} else if (!document.location.hash) {
$('#document-list a:first').click();
}
} else if (!document.location.hash) {
$('#document-list a:first').click();
}
-
+
setTimeout(checkHash, 500);
};
setTimeout(checkHash, 500);
};
-
+
checkHash();
});
</script>
checkHash();
});
</script>
@@
-48,9
+48,9
@@
{% block body %}
<h1>{% trans "Hand-outs for teachers" %}</h1>
<form action="{% url search %}" method="GET" accept-charset="utf-8" id="search-form">
{% block body %}
<h1>{% trans "Hand-outs for teachers" %}</h1>
<form action="{% url search %}" method="GET" accept-charset="utf-8" id="search-form">
- <p>{{ form.q }} <input type="submit" value="{% trans "Search" %}" /> <strong>{% trans "or" %}</strong> <a href="{% url main_page %}">{% trans "return to
home
page" %}</a></p>
+ <p>{{ form.q }} <input type="submit" value="{% trans "Search" %}" /> <strong>{% trans "or" %}</strong> <a href="{% url main_page %}">{% trans "return to
main
page" %}</a></p>
</form>
</form>
-
+
<div id="document-list">
<ol>
{% for object in object_list %}
<div id="document-list">
<ol>
{% for object in object_list %}
@@
-61,4
+61,3
@@
<div id="document-detail">
</div>
{% endblock %}
<div id="document-detail">
</div>
{% endblock %}
-
\ No newline at end of file