Fix #297.
This commit is contained in:
parent
154cec7ee0
commit
fe1991a68a
@ -664,8 +664,10 @@
|
||||
return false;
|
||||
},
|
||||
dimensions: function(root) {
|
||||
var span;
|
||||
if (span = $('.filesize', root)) return span.textContent.match(/\d+x\d+/)[0];
|
||||
var match, span;
|
||||
if ((span = $('.filesize', root)) && (match = span.textContent.match(/\d+x\d+/))) {
|
||||
return match[0];
|
||||
}
|
||||
return false;
|
||||
},
|
||||
filesize: function(root) {
|
||||
|
||||
@ -574,8 +574,8 @@ filter =
|
||||
return file.title
|
||||
false
|
||||
dimensions: (root) ->
|
||||
if span = $ '.filesize', root
|
||||
return span.textContent.match(/\d+x\d+/)[0]
|
||||
if (span = $ '.filesize', root) and match = span.textContent.match /\d+x\d+/
|
||||
return match[0]
|
||||
return false
|
||||
filesize: (root) ->
|
||||
if img = $ 'img[md5]', root
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user