fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added overwrite option to genslugs.py.
[wolnelektury.git]
/
wolnelektury
/
media
/
js
/
catalogue.js
diff --git
a/wolnelektury/media/js/catalogue.js
b/wolnelektury/media/js/catalogue.js
index
58021fe
..
187cfde
100644
(file)
--- a/
wolnelektury/media/js/catalogue.js
+++ b/
wolnelektury/media/js/catalogue.js
@@
-35,6
+35,15
@@
function() { $(this).css({background: '#FFF'}); }
);
function() { $(this).css({background: '#FFF'}); }
);
+ $('.show-all-tags').click(function() {
+ $(this).parent().parent().fadeOut(function() {
+ $(this).next().fadeIn();
+ });
+ return false;
+ });
+
+
+
$('#registration-form').ajaxForm({
dataType: 'json',
beforeSubmit: function() {
$('#registration-form').ajaxForm({
dataType: 'json',
beforeSubmit: function() {
@@
-89,6
+98,14
@@
}
});
}
});
+ $('ul.shelf-list li').hover(function() {
+ $(this).css({background: '#EEE', cursor: 'pointer'});
+ }, function() {
+ $(this).css({background: 'transparent'});
+ }).click(function() {
+ location.href = $('a.visit-shelf', this).attr('href');
+ });
+
$('.delete-shelf').click(function() {
var link = $(this);
var shelf_name = $('.visit-shelf', link.parent()).text();
$('.delete-shelf').click(function() {
var link = $(this);
var shelf_name = $('.visit-shelf', link.parent()).text();
@@
-117,6
+134,8
@@
success: function() { setTimeout(function() { $('#user-shelves-window').jqmHide() }, 1000) }
});
success: function() { setTimeout(function() { $('#user-shelves-window').jqmHide() }, 1000) }
});
+ $('input', hash.w).labelify({labelledClass: 'blur'});
+
$('ul.shelf-list li', hash.w).hover(function() {
$(this).css({background: '#EEE', cursor: 'pointer'});
}, function() {
$('ul.shelf-list li', hash.w).hover(function() {
$(this).css({background: '#EEE', cursor: 'pointer'});
}, function() {
@@
-128,7
+147,6
@@
$('.delete-shelf').click(function() {
var link = $(this);
var shelf_name = $('.visit-shelf', link.parent()).text();
$('.delete-shelf').click(function() {
var link = $(this);
var shelf_name = $('.visit-shelf', link.parent()).text();
- console.log(shelf_name);
if (confirm('Czy na pewno usunąć półkę ' + shelf_name + '?')) {
$.post(link.attr('href'), function(data, textStatus) {
link.parent().remove();
if (confirm('Czy na pewno usunąć półkę ' + shelf_name + '?')) {
$.post(link.attr('href'), function(data, textStatus) {
link.parent().remove();