1
? my ($app, @windows) = @_;
2
<script type="text/javascript">
3
document.observe("dom:loaded", function () {
4
alice.connection.msgid = <?= $_[0]->msgid ?>;
5
var orig_hash = window.location.hash;
6
<? for my $window (@windows) { ?>
9
'<?= $window->title ?>',
10
<?= $window->{active} ? "true" : "false" ?>,
11
'<?= $window->hashtag ?>'
14
alice.focusHash(orig_hash);
15
// required due to browser weirdness with scrolltobottom on initial focus
16
setTimeout(function(){alice.activeWindow().scrollToBottom(true)}, 1);
21
<?= $_mt->render_file('help.html', $_[0]) ?>