Only send save operation of changes has been perfomed.

Change default SMTP port.
This commit is contained in:
Paulo Gustavo Veiga
2012-07-15 22:20:21 -03:00
parent d304909a86
commit 8d4b336908
9 changed files with 39 additions and 45 deletions

View File

@@ -21,8 +21,6 @@ mindplot.DesignerUndoManager = new Class({
this._undoQueue = [];
this._redoQueue = [];
this._baseId = 0;
this._fireChange = fireChange;
},
enqueue:function(command) {
@@ -62,9 +60,9 @@ mindplot.DesignerUndoManager = new Class({
},
markAsChangeBase: function() {
var undoLenght = this._undoQueue.length;
if (undoLenght > 0) {
var command = this._undoQueue[undoLenght - 1];
var undoLength = this._undoQueue.length;
if (undoLength > 0) {
var command = this._undoQueue[undoLength - 1];
this._baseId = command.getId();
} else {
this._baseId = 0;
@@ -73,11 +71,11 @@ mindplot.DesignerUndoManager = new Class({
hasBeenChanged: function() {
var result = true;
var undoLenght = this._undoQueue.length;
if (undoLenght == 0 && this._baseId == 0) {
var undoLength= this._undoQueue.length;
if (undoLength == 0 && this._baseId == 0) {
result = false;
} else if (undoLenght > 0) {
var command = this._undoQueue[undoLenght - 1];
} else if (undoLength > 0) {
var command = this._undoQueue[undoLength - 1];
result = (this._baseId != command.getId());
}
return result;