mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 10:41:06 +01:00
added option to disable the cache
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
|
||||
var defaults = {
|
||||
maxItems: -1,
|
||||
disableCache: false,
|
||||
paramName: "url",
|
||||
itemClass: "feeds",
|
||||
errorTitle: "Error",
|
||||
@@ -59,9 +60,13 @@
|
||||
|
||||
function loadFeeds(){
|
||||
loadingView();
|
||||
var feedUrl = url;
|
||||
if ( options.disableCache ){
|
||||
feedUrl += "?_dc=" + new Date().getTime();
|
||||
}
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
url: feedUrl,
|
||||
dataType: "xml",
|
||||
success: renderFeeds,
|
||||
failure: renderErrorMsg
|
||||
|
||||
Reference in New Issue
Block a user