Merge pull request #237 from robhudson/685428_OWA_js
Updated apps JS to match API (bug 685428)
This commit is contained in:
Коммит
3ad7fb6dce
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче