Code cleanup
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user