+ {
+ console.log(this.model.get('state'), value, value.length);
+ if ((this.model.get('state') == 'synced') && (value.length == 0)) {
+ console.log('tutaj');
+ this.render('image-gallery-empty-template');
+ } else {
+ this.render();
+ this.gotoPage(this.currentPage);
+ }