fix "new" list generation
[mkgallery.git] / include / gallery.js
index 1d7f5b7c0249b5980f84a7502217638f1757e473..0900c799e99a70185a57c87be1738bfe9643906c 100644 (file)
@@ -129,8 +129,9 @@ var vimgs=[]
 */
 /* Initialize everything, to be called on domready */
 function init_gallery() {
- $$('.'+'varimages').each(function(el){
-  vimgs[el.id]=[]
+ $$('div.varimages').each(function(el){
+  var id=el.id
+  vimgs[id]=[]
   el.getElements('a').each(function(ael,i){
    dim = /(\d+)[^\d](\d+)/.exec(ael.text)
    w = dim[1]