if (this.datas.phonegap == 'ios') {
this.displayLoader();
if (types_ios[type] != undefined) {
- // var offset = $(e).offset();
- // offset.left += ($(e).width() / 2);
- // offset.top += ($(e).height());
- /*try {
+ var offset = $(e).offset();
+ offset.left += ($(e).width() / 2);
+ offset.top += ($(e).height());
+ try {
ExternalFileUtil.openWith(url, types_ios[type], function () {
$this.hideLoader();
}, function () {
$this.wopen(url, "_blank", 'location=no');
$this.hideLoader();
}, offset);
- } catch (err) {*/
- $this.wopen(url, "_blank", 'location=no');
- $this.hideLoader();
- //}
+ } catch (err) {
+ $this.wopen(url, "_blank", 'location=no');
+ $this.hideLoader();
+ }
return true;
}
}