~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/filesystem/browser/media/specialhome.js

  • Committer: William Grant
  • Date: 2009-03-25 04:29:35 UTC
  • Revision ID: grantw@unimelb.edu.au-20090325042935-zu6xr6b4q1buj0y3
Replace all non-external addEventListeners with equivalent jQuery calls.
Hopefully this will unbreak IE a bit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
                li.appendChild(span);
171
171
 
172
172
                var button = document.createElement("input");
173
 
                button.addEventListener("click", function(event)
 
173
                $(button).click(function(event)
174
174
                {
175
175
                    action_rename(path_join(path, name));
176
 
                },
177
 
                false);
 
176
                });
178
177
                button.setAttribute("type", "button");
179
178
                button.setAttribute("value", "Rename");
180
179
                span.appendChild(button);
190
189
            li.appendChild(span);
191
190
 
192
191
            var button = document.createElement("input");
193
 
            button.addEventListener("click", function(event)
 
192
            $(button).click(function(event)
194
193
            {
195
194
                li.setAttribute("class", "listing-loading");
196
195
 
206
205
                {
207
206
                    li.setAttribute("class", "listing-dir");
208
207
                }
209
 
            },
210
 
            false);
 
208
            });
211
209
            button.setAttribute("type", "button");
212
210
            button.setAttribute("value", "Checkout");
213
211
            span.appendChild(button);