Merge pull request #237 from robhudson/685428_OWA_js

Updated apps JS to match API (bug 685428)
This commit is contained in:
Wil Clouser 2011-09-26 15:37:35 -07:00
Родитель f1069b2f18 d5fb076ae1
Коммит 3ad7fb6dce
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -25,12 +25,12 @@ var notavail = '<div class="extra"><span class="notavail">{0}</span></div>',
var webappButton = function() {
var $this = $(this),
manifestURL = $this.attr('data-manifest-url');
if (navigator.apps && navigator.apps.install) {
if (navigator.mozApps && navigator.mozApps.install) {
$this.find('.button')
.removeClass('disabled')
.click(function(e) {
e.preventDefault();
navigator.apps.install({url: manifestURL});
navigator.mozApps.install(manifestURL);
});
} else {
// Attach something that says you can't install apps.

Просмотреть файл

@ -278,12 +278,12 @@
function initWebapp() {
if (navigator.apps && navigator.apps.install) {
if (navigator.mozApps && navigator.mozApps.install) {
dom.self.find('.button')
.removeClass('disabled')
.click(function(e) {
e.preventDefault();
navigator.apps.install({url: manifestURL});
navigator.mozApps.install(manifestURL);
});
} else {
// Attach something that says you can't install apps.