summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-12-17 19:17:00 -0800
committerBharat Mediratta <bharat@menalto.com>2011-12-17 19:17:00 -0800
commit67f689646b9e12db300d34017f2dbf97676978f4 (patch)
tree0d8cec2aadefaf75097bf07a7ec459d2a91a7476 /modules
parent2d911974d751334f4c6ca1bc3b0f3f98e220436e (diff)
Follow-on fix for #1790 - the last fix broke rearranging for everything
*but* IE9. Oops!
Diffstat (limited to 'modules')
-rw-r--r--modules/organize/views/organize_frame.html.php12
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-", "");
}
/*