Skip to content

Commit

Permalink
[#863 state:resolved] remove nasty old IE6 hack.
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlarsen committed Jul 7, 2011
1 parent 28c1a0c commit 900179e
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions hobo/lib/generators/hobo/rapid/templates/hobo-rapid.js
Expand Up @@ -444,23 +444,6 @@ var Hobo = {
},


fixSectionGroup: function(e) {
rows = e.childElements().map(function(e, i) {
cells = e.childElements().map(function(e, i) {
return e.outerHTML.sub("<DIV", "<td valign='top'").sub(/<\/DIV>$/i, "</td>")
}).join('')

var attrs = e.outerHTML.match(/<DIV([^>]+)/)[1]
return "<tr" + attrs + ">" + cells + "</tr>"
}).join("\n")

var attrs = e.outerHTML.match(/<DIV([^>]+)/)[1]

var table= "<table cellpadding='0' cellspacing='0' border='0' style='border-collapse: collapse; border-spacing: 0'" + attrs + ">" +
rows + "</table>"
e.outerHTML = table
},

makeHtmlEditor: function(textarea) {
// do nothing - plugins can overwrite this method
}
Expand Down Expand Up @@ -913,10 +896,6 @@ AutocompleteBehavior = Behavior.create({
Event.addBehavior.reassignAfterAjax = true;
Event.addBehavior({

'div.section-group' : function() {
if (Prototype.Browser.IE) Hobo.fixSectionGroup(this);
},

'div.select-many.input' : SelectManyInput(),

'textarea.html' : function() {
Expand Down

0 comments on commit 900179e

Please sign in to comment.