Merge branch 'master' of stigma:platforma
authorŁukasz Rekucki <lrekucki@gmail.com>
Tue, 29 Sep 2009 14:57:00 +0000 (16:57 +0200)
committerŁukasz Rekucki <lrekucki@gmail.com>
Tue, 29 Sep 2009 14:57:00 +0000 (16:57 +0200)
Conflicts:
project/static/js/models.js

1  2 
project/static/js/models.js

@@@ -204,15 -208,7 +209,15 @@@ Editor.ImageGalleryModel = Editor.Model
        alert('erroneous state:', this.get('state'));
      }
  
 -    this.set('pages', data[0].pages);
 +    $.log('galleries:', data);
 +
 +    if (data.length == 0)
 +        this.set('data', []);
 +    else {
 +        $.log('dupa');
 +        this.set('data', data[0].pages);
-     }
-     
++    }  
++
      this.set('state', 'synced');
    },