Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Commit

Permalink
Make limits query parameter on jobs page sticky.
Browse files Browse the repository at this point in the history
Fixes an issue where the ?limit= query parameter would not
persist on an AJAX refresh.
  • Loading branch information
dprince committed Aug 15, 2013
1 parent 9232e24 commit fbb8081
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/assets/javascripts/jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@ function refreshJobs() {

function reload_jobs_table(container) {

search = window.location.search;
if ( search == '' ) {
search = "?table_only=true"
} else {
search += "&table_only=true"
}

$.ajax({
url: '/jobs?table_only=true',
url: '/jobs' + search,
type: 'GET',
success: function(data) {
container.html(data);
Expand Down

0 comments on commit fbb8081

Please sign in to comment.