Fix Bug 50014
This commit is contained in:
parent
1d1db2e7b1
commit
386d55d785
|
@ -607,14 +607,16 @@ define([
|
||||||
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
|
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
|
||||||
if (!(expr.exec(record.value)) || value<0 || value>1584) {
|
if (!(expr.exec(record.value)) || value<0 || value>1584) {
|
||||||
this._state.StrokeType = this._state.StrokeWidth = -1;
|
this._state.StrokeType = this._state.StrokeWidth = -1;
|
||||||
Common.UI.error({
|
setTimeout( function() {
|
||||||
msg: this.textBorderSizeErr,
|
Common.UI.error({
|
||||||
callback: function() {
|
msg: me.textBorderSizeErr,
|
||||||
_.defer(function(btn) {
|
callback: function() {
|
||||||
me.fireEvent('editcomplete', me);
|
_.defer(function(btn) {
|
||||||
})
|
me.fireEvent('editcomplete', me);
|
||||||
}
|
})
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}, 10);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
this.applyBorderSize(record.value);
|
this.applyBorderSize(record.value);
|
||||||
|
|
|
@ -477,14 +477,16 @@ define([
|
||||||
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
|
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
|
||||||
if (!(expr.exec(record.value)) || value<0 || value>1584) {
|
if (!(expr.exec(record.value)) || value<0 || value>1584) {
|
||||||
this._state.StrokeType = this._state.StrokeWidth = -1;
|
this._state.StrokeType = this._state.StrokeWidth = -1;
|
||||||
Common.UI.error({
|
setTimeout( function() {
|
||||||
msg: this.textBorderSizeErr,
|
Common.UI.error({
|
||||||
callback: function() {
|
msg: me.textBorderSizeErr,
|
||||||
_.defer(function(btn) {
|
callback: function() {
|
||||||
me.fireEvent('editcomplete', me);
|
_.defer(function(btn) {
|
||||||
})
|
me.fireEvent('editcomplete', me);
|
||||||
}
|
})
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}, 10);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
this.applyBorderSize(record.value);
|
this.applyBorderSize(record.value);
|
||||||
|
|
|
@ -587,14 +587,16 @@ define([
|
||||||
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
|
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
|
||||||
if (!(expr.exec(record.value)) || value<0 || value>1584) {
|
if (!(expr.exec(record.value)) || value<0 || value>1584) {
|
||||||
this._state.StrokeType = this._state.StrokeWidth = -1;
|
this._state.StrokeType = this._state.StrokeWidth = -1;
|
||||||
Common.UI.error({
|
setTimeout( function() {
|
||||||
msg: this.textBorderSizeErr,
|
Common.UI.error({
|
||||||
callback: function() {
|
msg: me.textBorderSizeErr,
|
||||||
_.defer(function(btn) {
|
callback: function() {
|
||||||
me.fireEvent('editcomplete', me);
|
_.defer(function(btn) {
|
||||||
})
|
me.fireEvent('editcomplete', me);
|
||||||
}
|
})
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}, 10);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
this.applyBorderSize(record.value);
|
this.applyBorderSize(record.value);
|
||||||
|
|
|
@ -596,14 +596,16 @@ define([
|
||||||
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
|
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
|
||||||
if (!(expr.exec(record.value)) || value<0 || value>1584) {
|
if (!(expr.exec(record.value)) || value<0 || value>1584) {
|
||||||
this._state.StrokeType = this._state.StrokeWidth = -1;
|
this._state.StrokeType = this._state.StrokeWidth = -1;
|
||||||
Common.UI.error({
|
setTimeout( function() {
|
||||||
msg: this.textBorderSizeErr,
|
Common.UI.error({
|
||||||
callback: function() {
|
msg: me.textBorderSizeErr,
|
||||||
_.defer(function(btn) {
|
callback: function() {
|
||||||
me.fireEvent('editcomplete', me);
|
_.defer(function(btn) {
|
||||||
})
|
me.fireEvent('editcomplete', me);
|
||||||
}
|
})
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}, 10);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
this.applyBorderSize(record.value);
|
this.applyBorderSize(record.value);
|
||||||
|
|
|
@ -1123,14 +1123,16 @@ define([
|
||||||
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
|
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
|
||||||
if (!(expr.exec(record.value)) || value<0.01 || value>1584) {
|
if (!(expr.exec(record.value)) || value<0.01 || value>1584) {
|
||||||
this._state.LineWeight = -1;
|
this._state.LineWeight = -1;
|
||||||
Common.UI.error({
|
setTimeout( function() {
|
||||||
msg: this.textBorderSizeErr,
|
Common.UI.error({
|
||||||
callback: function() {
|
msg: me.textBorderSizeErr,
|
||||||
_.defer(function(btn) {
|
callback: function() {
|
||||||
Common.NotificationCenter.trigger('edit:complete', me);
|
_.defer(function(btn) {
|
||||||
})
|
Common.NotificationCenter.trigger('edit:complete', me);
|
||||||
}
|
})
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}, 10);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
this.applyBorderSize(record.value);
|
this.applyBorderSize(record.value);
|
||||||
|
|
|
@ -604,14 +604,16 @@ define([
|
||||||
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
|
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
|
||||||
if (!(expr.exec(record.value)) || value<0 || value>1584) {
|
if (!(expr.exec(record.value)) || value<0 || value>1584) {
|
||||||
this._state.StrokeType = this._state.StrokeWidth = -1;
|
this._state.StrokeType = this._state.StrokeWidth = -1;
|
||||||
Common.UI.error({
|
setTimeout( function() {
|
||||||
msg: this.textBorderSizeErr,
|
Common.UI.error({
|
||||||
callback: function() {
|
msg: me.textBorderSizeErr,
|
||||||
_.defer(function(btn) {
|
callback: function() {
|
||||||
Common.NotificationCenter.trigger('edit:complete', me);
|
_.defer(function(btn) {
|
||||||
})
|
Common.NotificationCenter.trigger('edit:complete', me);
|
||||||
}
|
})
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}, 10);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
this.applyBorderSize(record.value);
|
this.applyBorderSize(record.value);
|
||||||
|
|
|
@ -597,14 +597,16 @@ define([
|
||||||
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
|
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
|
||||||
if (!(expr.exec(record.value)) || value<0 || value>1584) {
|
if (!(expr.exec(record.value)) || value<0 || value>1584) {
|
||||||
this._state.StrokeType = this._state.StrokeWidth = -1;
|
this._state.StrokeType = this._state.StrokeWidth = -1;
|
||||||
Common.UI.error({
|
setTimeout( function() {
|
||||||
msg: this.textBorderSizeErr,
|
Common.UI.error({
|
||||||
callback: function() {
|
msg: me.textBorderSizeErr,
|
||||||
_.defer(function(btn) {
|
callback: function() {
|
||||||
Common.NotificationCenter.trigger('edit:complete', me);
|
_.defer(function(btn) {
|
||||||
})
|
Common.NotificationCenter.trigger('edit:complete', me);
|
||||||
}
|
})
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}, 10);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
this.applyBorderSize(record.value);
|
this.applyBorderSize(record.value);
|
||||||
|
|
Loading…
Reference in a new issue