Skip to content

Commit

Permalink
dont cache ajax requests by default, flush modal dialog overlay data …
Browse files Browse the repository at this point in the history
…before displaying
  • Loading branch information
rnixx committed Nov 9, 2010
1 parent dd18029 commit b2323de
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,13 @@ Changes
1.0b4
-----

- remove overlay data of modal dialog before reloading. otherwise callback
options are cached
[rnix, 2010-11-09]

- disable ajax request caching by default in ``bdajax.request``
[rnix, 2010-11-09]

- add modal dialog to bdajax
[rnix, 2010-11-09]

Expand Down
5 changes: 4 additions & 1 deletion src/bdajax/resources/bdajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,14 @@ bdajax = {
if (err) { bdajax.error(err); }
}
}
if (!config.cache) { config.cache = false; }
jQuery.ajax({
url: config.url,
dataType: config.type,
data: config.params,
success: config.success,
error: config.error
error: config.error,
cache: config.cache
});
},

Expand Down Expand Up @@ -219,6 +221,7 @@ bdajax = {

dialog: function(options, callback) {
var elem = jQuery('#ajax-dialog');
elem.removeData('overlay');
elem.overlay({
mask: {
color: '#fff',
Expand Down

0 comments on commit b2323de

Please sign in to comment.