Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Manual Search] make the manualSelect page to refresh during ep in search or queue #93

Merged
merged 1 commit into from
Mar 5, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions gui/slick/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -2494,25 +2494,24 @@ var SICKRAGE = {
success: function (data) {
if (data.result === 'refresh') {
self.refreshResults();
repeat = false;
$('#searchNotification').text('Search has finished!');
$('#searchNotification').text('Refreshed results...');
}

if (data.result === 'searching') {
// ep is searched, you will get a results any minute now
pollInterval = 3000;
pollInterval = 5000;
$('#searchNotification').text('The episode is being searched, please wait...');
}

if (data.result === 'queued') {
// ep is queued, this might take some time to get results
pollInterval = 5000;
pollInterval = 7000;
$('#searchNotification').text('The episode has been queued, because another search is taking place. please wait..');
}

if (data.result === 'finished') {
// ep search is finished
$('#searchNotification').text('Search finished, no (new) results found.');
$('#searchNotification').text('Search finished');
repeat = false;
}
if (data.result === 'error') {
Expand Down
Loading