Skip to content

Commit

Permalink
Item15175: fixed multiple jquery.loader on the same page
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Jan 17, 2023
1 parent 12654ee commit e356e7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin/LOADER.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ sub new {
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2011-2022 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2011-2023 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* jQuery Loader plugin 4.60
* jQuery Loader plugin 4.70
*
* Copyright (c) 2011-2022 Foswiki Contributors http://foswiki.org
* Copyright (c) 2011-2023 Foswiki Contributors http://foswiki.org
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
Expand Down Expand Up @@ -78,8 +78,8 @@
var self = this;

// add refresh listener
self.elem.on("refresh.jqloader", function(ev, opts) {
$.extend(self.opts, opts);
self.elem.on("refresh.jqloader", function(ev, params) {
self.opts.params = $.extend({}, self.opts.params, params);
self.loadAfter(0);
ev.stopPropagation();
});
Expand Down

0 comments on commit e356e7b

Please sign in to comment.