diff options
| author | Nathan Kinkade <nath@nkinka.de> | 2012-01-22 17:42:28 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nath@nkinka.de> | 2012-01-22 17:42:28 +0000 |
| commit | 9340b55ad9eeba3a295cada4731911a570c7c9d5 (patch) | |
| tree | 3fe1260a8fd0845d264f7a19fe8f5da8072e9cc7 /modules/organize | |
| parent | 0bec03301b38e1ed2d7a73391e065a787e0e3510 (diff) | |
| parent | 3a3b154b317814dcbd4ea0c1641b64e386cf85a9 (diff) | |
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/organize')
| -rw-r--r-- | modules/organize/views/organize_frame.html.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/organize/views/organize_frame.html.php b/modules/organize/views/organize_frame.html.php index 47828944..20a1a6da 100644 --- a/modules/organize/views/organize_frame.html.php +++ b/modules/organize/views/organize_frame.html.php @@ -129,12 +129,14 @@ var get_id_from_node = function(node) { var id = node.getAttribute("rel"); - if (!id) { - // IE9 has a bug which causes it to be unable to read the "rel" attr - // so hack it by extracting the id the CSS class id. This is fragile. - // ref: https://sourceforge.net/apps/trac/gallery/ticket/1790 - return node.getAttribute("id").replace("thumb-", ""); + if (id) { + return id; } + + // IE9 has a bug which causes it to be unable to read the "rel" attr + // so hack it by extracting the id the CSS class id. This is fragile. + // ref: https://sourceforge.net/apps/trac/gallery/ticket/1790 + return node.getAttribute("id").replace("thumb-", ""); } /* |
