Skip to content

Commit

Permalink
Add Global - Ajax Parameter
Browse files Browse the repository at this point in the history
sandywalker#272

egarciagc on Apr 30, 2018
  • Loading branch information
q2apro committed Aug 15, 2019
1 parent 0ec1194 commit 19dda7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/jquery.webui-popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
error: null //function(that, xhr, data){}
},
cache: true,
global: true,
multi: false,
arrow: true,
title: '',
Expand Down Expand Up @@ -589,6 +590,9 @@
}
return this.options.cache;
},
getGlobal: function () {
return this.$element.attr('data-global') || this.options.global;
},
getTrigger: function() {
return this.$element.attr('data-trigger') || this.options.trigger;
},
Expand Down Expand Up @@ -706,6 +710,7 @@
url: this.getUrl(),
type: this.options.async.type,
cache: this.getCache(),
global: this.getGlobal(),
beforeSend: function(xhr, settings) {
if (that.options.async.before) {
that.options.async.before(that, xhr, settings);
Expand Down

0 comments on commit 19dda7d

Please sign in to comment.