fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ustawianie galerii inline.
[redakcja.git]
/
platforma
/
static
/
js
/
views
/
gallery.js
diff --git
a/platforma/static/js/views/gallery.js
b/platforma/static/js/views/gallery.js
index
d3398ce
..
a403c9e
100644
(file)
--- a/
platforma/static/js/views/gallery.js
+++ b/
platforma/static/js/views/gallery.js
@@
-220,6
+220,8
@@
var ImageGalleryView = View.extend({
{
if(!this.model) return;
{
if(!this.model) return;
+ $('.choose-gallery-button', this.element).unbind();
+
/* first unbind all */
if(this.$nextButton) this.$nextButton.unbind();
if(this.$prevButton) this.$prevButton.unbind();
/* first unbind all */
if(this.$nextButton) this.$nextButton.unbind();
if(this.$prevButton) this.$prevButton.unbind();
@@
-261,6
+263,12
@@
var ImageGalleryView = View.extend({
this.changePageZoom(this.pageZoom);
} else {
this._super(template);
this.changePageZoom(this.pageZoom);
} else {
this._super(template);
+
+ var self = this;
+ $('.choose-gallery-button', self.element).click(function() {
+ console.log('CLICK CLICK')
+ self.model.setGallery($('#id_subpath', self.element).val());
+ });
}
},
}
},