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