var $this = this;
$(this.element).on('click', this.optionSelector, function () {
- if ($(this).hashClass('disabled')) {
+ if ($(this).hasClass('disabled')) {
return true;
}
var r = $(this).find('input[type=radio]');
},
_openFilePreload: function (url, e, type, localname, print) {
+
var $this = this;
- this.displayLoader();
- $.ajax({
- url: url,
- type: 'HEAD',
- success: function (data) {
- $this._openFile(url, e, type, localname, print);
- $this.hideLoader(1, true);
- },
- });
+ var f = function () {
+ $this._openFile(url, e, type, localname, print);
+ };
+
+ if (this.settings.phonegap != false) {
+ this.displayLoader();
+ $.ajax({
+ url: url,
+ type: 'HEAD',
+ success: function (data) {
+ f();
+ $this.hideLoader(1, true);
+ },
+ });
+ } else {
+ f();
+ }
},
if (options == undefined && replace == undefined) {
if (this.support.IE == 0) {
w = win.open(url, mtarget);
+ console.log(w);
} else {
$("#wopen").remove();
$('body').append('<a id="wopen" href="' + url + '" target="' + mtarget + '"></a>');
}
window.location = 'mailto:tech@fluidbook.com?subject=' + encodeURIComponent(subject) + '&body=' + encodeURIComponent(JSON.stringify(o));
}
- }
- ,
+ },
}
},\r
\r
_ga: function (a0, a1, a2, a3, a4) {\r
- console.log('ga', this.ga, a0, a1, a2, a3, a4);\r
var args = Array.prototype.slice.call(arguments);\r
if (this.ga === 'gtag') {\r
var f, o, c, a;\r