Created
July 31, 2010 12:46
-
-
Save xaicron/502145 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/assets/static/iphone2.js b/assets/static/iphone2.js | |
index df2cf3f..bf5bb77 100644 | |
--- a/assets/static/iphone2.js | |
+++ b/assets/static/iphone2.js | |
@@ -68,5 +68,12 @@ | |
}; | |
$(function () { | |
Mobirc.initialize(); | |
+ setInterval(function() { | |
+ var channel = $('#header').html(); | |
+ if (!channel) return; | |
+ if (channel == 'mobirc') return; | |
+ Mobirc.loadContent(channel); | |
+ channel = undefined; | |
+ }, 5 * 1000); | |
}); | |
})(); | |
diff --git a/assets/tmpl/i_phone2/channel.mt b/assets/tmpl/i_phone2/channel.mt | |
index 518ea91..6559d92 100644 | |
--- a/assets/tmpl/i_phone2/channel.mt | |
+++ b/assets/tmpl/i_phone2/channel.mt | |
@@ -4,7 +4,7 @@ | |
? my $page = param('page') || 1; | |
<div class="toolbar"> | |
- <h1><?= $channel->name ?></h1> | |
+ <h1 id="header"><?= $channel->name ?></h1> | |
<a class="button slideup" id="goMenuButton" href="#menu">Menu</a> | |
</div> | |
diff --git a/assets/tmpl/i_phone2/menu.mt b/assets/tmpl/i_phone2/menu.mt | |
index c7a7454..121f174 100644 | |
--- a/assets/tmpl/i_phone2/menu.mt | |
+++ b/assets/tmpl/i_phone2/menu.mt | |
@@ -1,5 +1,5 @@ | |
<div class="toolbar"> | |
- <h1>mobirc</h1> | |
+ <h1 id="header">mobirc</h1> | |
<a class="button slideup" href="#about">About</a> | |
</div> | |
<div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment