Feature: Job Queues

Also UI style, theme and element changes
This commit is contained in:
Gary Sharp
2014-02-03 14:50:08 +11:00
parent bdb3e1e6b4
commit 3f63281dc4
212 changed files with 17334 additions and 5441 deletions
@@ -1690,9 +1690,9 @@ namespace Disco.Web.Areas.API.Controllers
Database.Configuration.LazyLoadingEnabled = true;
if (j != null)
{
if (j.CanForceClose())
if (j.CanCloseForced())
{
j.OnForceClose(Database, CurrentUser, Reason);
j.OnCloseForced(Database, CurrentUser, Reason);
Database.SaveChanges();
if (redirect.HasValue && redirect.Value)
@@ -1715,9 +1715,9 @@ namespace Disco.Web.Areas.API.Controllers
Database.Configuration.LazyLoadingEnabled = true;
if (j != null)
{
if (j.CanClose())
if (j.CanCloseNormally())
{
j.OnClose(CurrentUser);
j.OnCloseNormally(CurrentUser);
Database.SaveChanges();
if (redirect)