7bf5fab1fa2fa07cc012c0570781aea23343ae05 | bcca862eaaeeb4e5a739a9107f8ae073ef6a37b3 | ||
---|---|---|---|
131 | compute_height:function() { | 131 | compute_height:function() { |
132 | var arrows = this.$("arrows"); | 132 | var arrows = this.$("arrows"); |
133 | var entry = this.$("entry"); | 133 | var entry = this.$("entry"); |
134 | var thumb = this.$("thumbnail"); | ||
134 | var num = this.$("num"); | 135 | var num = this.$("num"); |
135 | return Math.max(arrows ? arrows.offsetHeight : 0, | 136 | return Math.max(arrows ? arrows.offsetHeight : 0, |
136 | entry ? entry.offsetHeight : 0, | 137 | entry ? entry.offsetHeight : 0, |
138 | thumb ? thumb.offsetHeight : 0, | ||
137 | num ? num.offsetHeight : 0); | 139 | num ? num.offsetHeight : 0); |
138 | }, | 140 | }, |
139 | 141 | ||
... | ... | ||
151 | 153 | ||
152 | set_height: function(h) { | 154 | set_height: function(h) { |
153 | var entry = this.$('entry'); | 155 | var entry = this.$('entry'); |
154 | var arrows = this.$('arrows'); | 156 | var thumb = this.$('thumbnail'); |
157 | var arrows = this.$('arrows'); | ||
155 | var num = this.$('num'); | 158 | var num = this.$('num'); |
156 | if(h == "fit" || | 159 | if(h == "fit" || |
157 | (this.max_height() && h >= this.max_height() *.90 )) { | 160 | (this.max_height() && h >= this.max_height() *.90 )) { |
... | ... | ||
190 | } | 193 | } |
191 | entry.style.height = h; | 194 | entry.style.height = h; |
192 | if(arrows) { arrows.style.height = h; } | 195 | if(arrows) { arrows.style.height = h; } |
196 | if(thumb) { thumb.style.height = h; } | ||
193 | if(num) { | 197 | if(num) { |
194 | if (h) | 198 | if (h) |
195 | num.style.marginTop = 0; | 199 | num.style.marginTop = 0; |
... | ... | ||
457 | return _global_fetching_tag; | 461 | return _global_fetching_tag; |
458 | } | 462 | } |
459 | 463 | ||
460 | function setClick(a) { | 464 | function setClick(a, css_class) { |
465 | css_class = css_class || "title"; | ||
461 | var id = _id(a); | 466 | var id = _id(a); |
462 | if (id) { | 467 | if (id) { |
463 | if(logged) { | 468 | if(logged) { |
464 | a.className = "title loggedin click"; | 469 | a.className = css_class + " loggedin click"; |
465 | } | 470 | } |
466 | else { | 471 | else { |
467 | a.className = "title click"; | 472 | a.className = css_class + " click"; |
468 | } | 473 | } |
469 | setClickCookie(id); | 474 | setClickCookie(id); |
470 | } | 475 | } |