respond_to do |format|
format.html
- format.js
+ format.js { no_cache_headers }
end
end
respond_to do |format|
format.html
- format.js
+ format.js { no_cache_headers }
end
end
respond_to do |format|
format.html
- format.js
+ format.js { no_cache_headers }
format.atom { render :layout => false }
end
end
$('select#branch').selectmenu({style:'popup', width:200});
$('select#tag').selectmenu({style:'popup', width:200});
});
+
+- if params[:path] && request.xhr?
+ :javascript
+ $(window).unbind('popstate');
+ $(window).bind('popstate', function() {
+ if(location.pathname.search("tree") != -1) {
+ $.ajax({type: "GET", url: location.pathname, dataType: "script"})}
+ else { location.href = location.pathname;}});