~ubuntu-branches/debian/jessie/alice/jessie

« back to all changes in this revision

Viewing changes to share/templates/index_footer.html

  • Committer: Bazaar Package Importer
  • Author(s): Dave Walker (Daviey)
  • Date: 2011-07-29 22:17:12 UTC
  • Revision ID: james.westby@ubuntu.com-20110729221712-av9dbulzigsrx3n7
Tags: upstream-0.19
ImportĀ upstreamĀ versionĀ 0.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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) { ?>
 
7
              alice.openWindow(
 
8
                '<?= $window->id ?>',
 
9
                '<?= $window->title ?>',
 
10
                <?= $window->{active} ? "true" : "false" ?>,
 
11
                '<?= $window->hashtag ?>'
 
12
              );
 
13
            <? } ?>
 
14
            alice.focusHash(orig_hash);
 
15
            // required due to browser weirdness with scrolltobottom on initial focus
 
16
            setTimeout(function(){alice.activeWindow().scrollToBottom(true)}, 1);
 
17
          });
 
18
        </script>
 
19
      </div>
 
20
    </div>
 
21
    <?= $_mt->render_file('help.html', $_[0]) ?>
 
22
  </body>
 
23
</html>