diff options
author | Evan Prodromou <evan@status.net> | 2009-10-04 03:07:37 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-10-04 03:07:37 -0400 |
commit | c5047fd90ac8f6f057780a34065e320883c7a31f (patch) | |
tree | 01af92337e09496587020c49f7cafe0880ebdbbe /lib/htmloutputter.php | |
parent | 18f4a7eaea3c78cb55db843d77b43db86ac70308 (diff) | |
parent | d1a5a4987514bc786eb270f0cc30300f7328a963 (diff) |
Merge branch '0.8.x' into 0.9.x
Conflicts:
classes/Profile.php
Diffstat (limited to 'lib/htmloutputter.php')
-rw-r--r-- | lib/htmloutputter.php | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php index c70f96537..ce83295fb 100644 --- a/lib/htmloutputter.php +++ b/lib/htmloutputter.php @@ -427,16 +427,12 @@ class HTMLOutputter extends XMLOutputter function autofocus($id) { $this->elementStart('script', array('type' => 'text/javascript')); - $this->raw(' - <!-- - $(document).ready(function() { - var el = $("#' . $id . '"); - if (el.length) { - el.focus(); - } - }); - --> - '); + $this->raw('/*<![CDATA[*/'. + ' $(document).ready(function() {'. + ' var el = $("#' . $id . '");'. + ' if (el.length) { el.focus(); }'. + ' });'. + ' /*]]>*/'); $this->elementEnd('script'); } } |