Skip to content
This repository
Browse code

fix broken add tracks in IE8

  • Loading branch information...
commit bd7724731dd926dbada3a1aaec9bfe1f2b49f1dc 1 parent 4c1c9bd
Lincoln Stein lstein authored

Showing 1 changed file with 4 additions and 6 deletions. Show diff stats Hide diff stats

  1. +4 6 htdocs/js/controller.js
10 htdocs/js/controller.js
@@ -252,9 +252,9 @@ var GBrowseController = Class.create({
252 252 var first_track = tracks[0];
253 253
254 254 if (onTop && first_track != null)
255   - parent_obj.insertBefore(tmp_element,first_track[0]);
  255 + parent_obj.insert(tmp_element,{before: first_track[0]});
256 256 else
257   - parent_obj.appendChild(tmp_element);
  257 + parent_obj.insert(tmp_element);
258 258
259 259 // Move each child node but skip if it is a comment (class is undef)
260 260 if (tmp_element.hasChildNodes()) {
@@ -263,9 +263,9 @@ var GBrowseController = Class.create({
263 263 if (children[i].className == undefined)
264 264 continue;
265 265 if (onTop && first_track != null)
266   - parent_obj.insertBefore(children[i],first_track);
  266 + parent_obj.insert(children[i],{before:first_track});
267 267 else
268   - parent_obj.appendChild(children[i]);
  268 + parent_obj.insert(children[i]);
269 269 }
270 270 }
271 271 parent_obj.removeChild(tmp_element);
@@ -487,7 +487,6 @@ var GBrowseController = Class.create({
487 487 var get_tracks = false;
488 488
489 489 for (var ret_track_id in track_data) {
490   -
491 490 if (Controller.gbtracks.get(ret_track_id) != null)
492 491 continue; //oops already know this one
493 492
@@ -1071,7 +1070,6 @@ show_info_message:
1071 1070 var sections = new Array(custom_tracks_id, track_listing_id);
1072 1071 if (using_database()) sections.push(community_tracks_id);
1073 1072 Controller.update_sections(sections);
1074   - //alert($(label+'_title').select('span.drag_region').innerHTML);
1075 1073 var titles = $(label+'_title').select('span.drag_region');
1076 1074 titles[0].innerHTML='<b>'+new_key+'</b>';
1077 1075 }

0 comments on commit bd77247

Please sign in to comment.
Something went wrong with that request. Please try again.