Update: Create Job redirect shows Job Id

This commit is contained in:
Gary Sharp
2014-03-18 14:10:50 +11:00
parent 3d5f71aba9
commit 69091e0785
4 changed files with 20 additions and 7 deletions
+4 -1
View File
@@ -445,7 +445,10 @@ namespace Disco.Web.Controllers
Database.SaveChanges();
// Return Dialog Redirect
var redirectModel = new Models.Job.CreateRedirectModel();
var redirectModel = new Models.Job.CreateRedirectModel()
{
JobId = j.Id
};
redirectModel.RedirectDelay = TimeSpan.FromSeconds(2);
if (m.QuickLog.HasValue && m.QuickLog.Value && !string.IsNullOrWhiteSpace(m.SourceUrl))
redirectModel.RedirectLink = m.SourceUrl;