From e339afb48098c150d15ba519bed62e2673deb4a7 Mon Sep 17 00:00:00 2001 From: Alib Date: Fri, 4 Mar 2011 18:58:54 +0100 Subject: added patch for better iPad support ( breaks logo icon on stream button, but useless on ios 4.2) --- js/istreamdev.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'js') diff --git a/js/istreamdev.js b/js/istreamdev.js index e5863c1..d442ed4 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -51,6 +51,11 @@ jQT = new $.jQTouch({ $(document).ready(function(e){ dataString = "action=getGlobals"; showStatus( 0,"Getting configuration data" ); + if ( navigator.userAgent.match(/iPad/i)) { + is_ipad = true; + } else { + is_ipad = false; + } $.getJSON("bin/backend.php", dataString, function(data){ @@ -599,7 +604,8 @@ function playvideo(session,name) { streaming.find('ul[class="streamstatus"]').find('span[class="mode"]').html(message); if ( status == "ready" || status == "error" ) { streaming.find('#player').removeAttr("style"); - streaming.find('#player').html(''); + streaming.find('#player').html(''); + return false; } prevmsg = message; -- cgit v1.2.3