diff options
author | asylumfunk <asylumfunk@asylumfunk.com> | 2012-09-28 19:20:17 -0700 |
---|---|---|
committer | asylumfunk <asylumfunk@asylumfunk.com> | 2012-10-05 03:25:20 -0700 |
commit | 2c485ca125688fbd30e739511ba87eca5c3dae05 (patch) | |
tree | 09101d9da017b97ad05d4a8f55ed50e44dfb0ebf /addons | |
parent | 8de9ffd12683459916caad3f9865d0c4fa0f9147 (diff) |
cleanup - removed unreferenced functions, moved dangling variable declaration
Diffstat (limited to 'addons')
-rw-r--r-- | addons/webinterface.default/addon.xml | 2 | ||||
-rwxr-xr-x | addons/webinterface.default/index.html | 2 | ||||
-rw-r--r-- | addons/webinterface.default/js/Core.js | 33 | ||||
-rw-r--r-- | addons/webinterface.default/js/xbmc.launcher.js | 2 |
4 files changed, 4 insertions, 35 deletions
diff --git a/addons/webinterface.default/addon.xml b/addons/webinterface.default/addon.xml index beed59a9ee..8364d45c25 100644 --- a/addons/webinterface.default/addon.xml +++ b/addons/webinterface.default/addon.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <addon id="webinterface.default" - version="2.0.4" + version="2.0.5" name="Default" provider-name="Team XBMC"> <requires> diff --git a/addons/webinterface.default/index.html b/addons/webinterface.default/index.html index c122a1a148..911658bb07 100755 --- a/addons/webinterface.default/index.html +++ b/addons/webinterface.default/index.html @@ -69,6 +69,6 @@ <div id="nowPlayingPlaylist" style="display: none;"></div> </div> </div> - <script type="text/javascript" src="js/xbmc.launcher.js?v=2.0.3"></script> + <script type="text/javascript" src="js/xbmc.launcher.js?v=2.0.5"></script> </body> </html> diff --git a/addons/webinterface.default/js/Core.js b/addons/webinterface.default/js/Core.js index 3bda0faefe..aae947f2d6 100644 --- a/addons/webinterface.default/js/Core.js +++ b/addons/webinterface.default/js/Core.js @@ -19,7 +19,7 @@ */ /* Global Paths */ - +var commsErrorTimeout; var JSON_RPC = 'jsonrpc'; var DEFAULT_ALBUM_COVER = 'images/DefaultAlbumCover.png'; var DEFAULT_VIDEO_COVER = 'images/DefaultVideo.png'; @@ -50,32 +50,6 @@ function durationToString(duration) { return result; } -function timeToString(duration, showMilliseconds) { - if (!duration) { - return '00:00'; - } - milliseconds = duration.milliseconds - var result = ''; - if (duration.hours) { - result += (duration.hours < 10 ? '0' + duration.hours : duration.hours) + ':'; - } - result += (duration.minutes < 10 ? '0' + duration.minutes : duration.minutes) + ':' + (duration.seconds < 10 ? '0' + duration.seconds : duration.seconds); - if (showMilliseconds) { - result += '.'; - if (duration.milliseconds < 1000) { - result += '.'; - if (duration.milliseconds < 100) { - result += '0'; - if (duration.milliseconds < 10) { - result += '0'; - } - } - } - result += duration.milliseconds; - } - return result; -} - function timeToDuration(time) { return time.hours * 3600 + time.minutes * 60 + time.seconds; } @@ -84,8 +58,6 @@ function applyDeviceFixes() { document.addEventListener('touchmove', function(e){ e.preventDefault(); }); } -var commsErrorTimeout; - function displayCommunicationError(m) { clearTimeout(commsErrorTimeout); var message = m || 'Connection to server lost'; @@ -117,6 +89,3 @@ function getCookie(name) { return null; } -function deleteCookie(name) { - setCookie(name,"",-1); -}
\ No newline at end of file diff --git a/addons/webinterface.default/js/xbmc.launcher.js b/addons/webinterface.default/js/xbmc.launcher.js index 555b577502..6877a208ca 100644 --- a/addons/webinterface.default/js/xbmc.launcher.js +++ b/addons/webinterface.default/js/xbmc.launcher.js @@ -24,7 +24,7 @@ var i, script, debug = false, /* Set to true to disable cached javascript */ - version = (debug ? Math.random() : '2.0.3'), + version = (debug ? Math.random() : '2.0.5'), scripts = [ "js/jquery-1.5.2.min.js", "js/jquery.lazyload.js", |