diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-11-04 05:30:06 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-11-04 05:30:55 -0700 |
commit | 2634b249a36b79a5c11dcdda3edc7161e9f92c2b (patch) | |
tree | 9f4ece9e3bd9c95510e2922d060da58a30c3f674 /MobileCydia.app/package.js | |
parent | 722d98cad9374e0e03e85611c196a2a128b0f4a6 (diff) |
Totally reimplemented BrowserController in terms of UIWebView.
Diffstat (limited to 'MobileCydia.app/package.js')
-rw-r--r-- | MobileCydia.app/package.js | 46 |
1 files changed, 2 insertions, 44 deletions
diff --git a/MobileCydia.app/package.js b/MobileCydia.app/package.js index b9f85ff..4d016d4 100644 --- a/MobileCydia.app/package.js +++ b/MobileCydia.app/package.js @@ -45,7 +45,7 @@ swap_ = function (on, off, time) { }; }; -var special_ = function () { +$(function () { if (package == null) return; @@ -285,46 +285,4 @@ var special_ = function () { else $("#source-description").html($.xml(description)); } -}; - -$(special_); - -var special = function () { - $(".deleted").removeClass("deleted"); - $(".inserted").remove(); - - $("#icon")[0].className = 'flip-0'; - $("#thumb")[0].className = 'flip-180'; - - /* XXX: this could be better */ - $("#rating-href").href(null); - $("#rating-none").css("display", "none"); - $("#rating-done").css("display", "none"); - - var notice = $("#notice-src"); - - notice[0].outerHTML = '<iframe' + - ' class="notice"' + - ' id="notice-src"' + - ' frameborder="0"' + - ' width="320"' + - ' height="0"' + - ' target="_top"' + - '></iframe>'; - - var depiction = $("#depiction-src"); - - depiction[0].outerHTML = '<iframe' + - ' class="depiction"' + - ' id="depiction-src"' + - ' frameborder="0"' + - ' width="320"' + - ' height="0"' + - ' target="_top"' + - ' onload_="loaded()"' + - '></iframe>'; - - special_(); -}; - -cydia.setSpecial(special); +}); |