Commits

Sebastian Sdorra committed 0529a07

added option to disable the cache

Comments (0)

Files changed (1)

scm-plugin-backend/src/main/webapp/template/js/jquery.feed.js

 
     var defaults = {
       maxItems: -1,
+      disableCache: false,
       paramName: "url",
       itemClass: "feeds",
       errorTitle: "Error",
 
     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