Code cleanup

This commit is contained in:
2015-07-22 12:41:13 +02:00
parent dd1869f124
commit 45f0018512
8 changed files with 11 additions and 24 deletions

View File

@@ -285,4 +285,4 @@ namespace VAR.Focus.Web.Code.BusinessLogic
#endregion #endregion
} }
} }

View File

@@ -86,4 +86,4 @@ namespace VAR.Focus.Web.Code.BusinessLogic
} }
} }

View File

@@ -1,7 +1,4 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace VAR.Focus.Web.Code.Entities namespace VAR.Focus.Web.Code.Entities
{ {
@@ -21,4 +18,4 @@ namespace VAR.Focus.Web.Code.Entities
public string ModifiedBy { get; set; } public string ModifiedBy { get; set; }
public DateTime ModifiedDate { get; set; } public DateTime ModifiedDate { get; set; }
} }
} }

View File

@@ -1,7 +1,4 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace VAR.Focus.Web.Code.Entities namespace VAR.Focus.Web.Code.Entities
{ {

View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace VAR.Focus.Web.Code.Entities namespace VAR.Focus.Web.Code.Entities
{ {
public class OperationStatus public class OperationStatus

View File

@@ -1,8 +1,5 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text; using System.Text;
using System.Web;
using System.Web.UI; using System.Web.UI;
using System.Web.UI.WebControls; using System.Web.UI.WebControls;
@@ -126,4 +123,4 @@ namespace VAR.Focus.Web.Controls
#endregion #endregion
} }
} }

View File

@@ -217,4 +217,4 @@ namespace VAR.Focus.Web.Controls
#endregion #endregion
} }
} }

View File

@@ -115,7 +115,7 @@ Toolbox.prototype = {
pos.x += this.divToolbox.offsetLeft; pos.x += this.divToolbox.offsetLeft;
pos.y += this.divToolbox.offsetTop + this.divToolbox.offsetHeight; pos.y += this.divToolbox.offsetTop + this.divToolbox.offsetHeight;
var card = new Card(this.cfg, 0, "", "", pos.x, pos.y); var card = new Card(this.cfg, 0, "", "", pos.x, pos.y);
card.InsertInContainer(this.cfg.divBoard); card.InsertOnContainer(this.cfg.divBoard);
card.EnterEditionMode(); card.EnterEditionMode();
return false; return false;
} }
@@ -203,7 +203,7 @@ var Card = function (cfg, idCard, title, body, x, y) {
if (this.IDCard > 0) { if (this.IDCard > 0) {
this.cfg.Cards.push(this); this.cfg.Cards.push(this);
} }
this.InsertInContainer(this.cfg.divBoard); this.InsertOnContainer(this.cfg.divBoard);
}; };
Card.prototype = { Card.prototype = {
FilterText: function (text) { FilterText: function (text) {
@@ -212,7 +212,7 @@ Card.prototype = {
text = text.split("\n").join("<br />"); text = text.split("\n").join("<br />");
return text; return text;
}, },
InsertInContainer: function (container) { InsertOnContainer: function (container) {
this.container = container; this.container = container;
this.container.appendChild(this.divCard); this.container.appendChild(this.divCard);
this.cfg.Toolbox.ReInsertOnContainer(); this.cfg.Toolbox.ReInsertOnContainer();
@@ -269,7 +269,7 @@ Card.prototype = {
this.divTitle.innerHTML = this.FilterText(this.Title); this.divTitle.innerHTML = this.FilterText(this.Title);
this.divBody.innerHTML = this.FilterText(this.Body); this.divBody.innerHTML = this.FilterText(this.Body);
this.RemoveFromContainer(); this.RemoveFromContainer();
this.InsertInContainer(this.cfg.divBoard); this.InsertOnContainer(this.cfg.divBoard);
}, },
Reset: function () { Reset: function () {
this.newX = this.X; this.newX = this.X;
@@ -303,7 +303,7 @@ Card.prototype = {
this.animData = null; this.animData = null;
} }
this.RemoveFromContainer(); this.RemoveFromContainer();
this.InsertInContainer(this.cfg.divBoard); this.InsertOnContainer(this.cfg.divBoard);
}, },
OnMove: function () { OnMove: function () {
var card = this; var card = this;