Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Follow-on fix for #1790 - the last fix broke rearranging for everything

*but* IE9.  Oops!
  • Loading branch information...
commit 67f689646b9e12db300d34017f2dbf97676978f4 1 parent 2d91197
@bharat bharat authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 modules/organize/views/organize_frame.html.php
View
12 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-", "");
}
/*
Please sign in to comment.
Something went wrong with that request. Please try again.