1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-28 08:39:57 +02:00

JS API (big) troubles - next try (one more reason to hate IE)

This commit is contained in:
secretr
2009-01-12 12:05:55 +00:00
parent 70a2b51da7
commit 9413f65fa9
4 changed files with 20 additions and 16 deletions

View File

@@ -28,7 +28,7 @@ function theme_head() {
* TODO: add 'adminlist' class to all list core tables, allow theme decorate.
*/
e107.runOnLoad( function(event) {
var element = event.element() != document ? event.element() : $$('body')[0];
var element = event.memo['element'] ? $(event.memo.element) : $$('body')[0];
element.select('table.adminlist:not(.no-decorate)').each(function(element) {
e107Utils.Decorate.table(element, {tr_td: 'first last'});