fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Uprawnienia do dodawania plikow.
[redakcja.git]
/
project
/
templates
/
explorer
/
panels
/
gallery.html
diff --git
a/project/templates/explorer/panels/gallery.html
b/project/templates/explorer/panels/gallery.html
index
36a2357
..
af3a5cb
100644
(file)
--- a/
project/templates/explorer/panels/gallery.html
+++ b/
project/templates/explorer/panels/gallery.html
@@
-1,7
+1,5
@@
<div class="toolbar" style="height: 24px">
<div class="toolbar" style="height: 24px">
- <select name="folders" class="id_folders">
- {{ form.folders }}
- </select>
+ {{ form.folders }}
</div>
<div class="images-wrap" style="position: absolute; top: 24px; left:0px; right:0px; bottom: 0px;">
</div>
<div class="images-wrap" style="position: absolute; top: 24px; left:0px; right:0px; bottom: 0px;">
@@
-12,9
+10,10
@@
panel_hooks = {
load: function() {
var contentDiv = this.contentDiv;
panel_hooks = {
load: function() {
var contentDiv = this.contentDiv;
- $('.id_folders', contentDiv).change(function() {
+ $('select[name=folders]', contentDiv).change(function() {
+ var select = this;
$('.images', contentDiv).fadeOut('slow', function() {
$('.images', contentDiv).fadeOut('slow', function() {
- $(this).html('').load('{% url folder_image_ajax %}' + $(
'.id_folders', contentDiv
).val() + '/', function() {
+ $(this).html('').load('{% url folder_image_ajax %}' + $(
select
).val() + '/', function() {
$('.images-wrap', contentDiv).data('lazyload:lastCheckedScrollTop', -10000);
});
})
$('.images-wrap', contentDiv).data('lazyload:lastCheckedScrollTop', -10000);
});
})