Merged in bugfix/HOR-662 (pull request #5656)
HOR-662 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
@@ -125,7 +125,17 @@ Ext.onReady(function(){
|
|||||||
frame: true,
|
frame: true,
|
||||||
items:[
|
items:[
|
||||||
{xtype: 'textfield', name: 'cat_uid', hidden: true },
|
{xtype: 'textfield', name: 'cat_uid', hidden: true },
|
||||||
{xtype: 'textfield', fieldLabel: _('ID_CATEGORY_NAME'), name: 'category', width: 250, maxLength :100, allowBlank: false}
|
{
|
||||||
|
xtype: 'textfield',
|
||||||
|
fieldLabel: _('ID_CATEGORY_NAME'),
|
||||||
|
name: 'category',
|
||||||
|
width: 250,
|
||||||
|
maxLength :100,
|
||||||
|
allowBlank: false,
|
||||||
|
validator: function (v) {
|
||||||
|
return !/[:<>/]/.test(v);
|
||||||
|
}
|
||||||
|
}
|
||||||
],
|
],
|
||||||
buttons: [
|
buttons: [
|
||||||
{text: _('ID_SAVE'), handler: UpdateCategory},
|
{text: _('ID_SAVE'), handler: UpdateCategory},
|
||||||
@@ -288,7 +298,17 @@ NewCategoryWindow = function(){
|
|||||||
url: 'processCategory_Ajax?action=saveNewCategory',
|
url: 'processCategory_Ajax?action=saveNewCategory',
|
||||||
frame: true,
|
frame: true,
|
||||||
items: [
|
items: [
|
||||||
{xtype: 'textfield', fieldLabel: _('ID_CATEGORY_NAME'), name: 'category', width: 250, maxLength :100, allowBlank: false}
|
{
|
||||||
|
xtype: 'textfield',
|
||||||
|
fieldLabel: _('ID_CATEGORY_NAME'),
|
||||||
|
name: 'category',
|
||||||
|
width: 250,
|
||||||
|
maxLength :100,
|
||||||
|
allowBlank: false,
|
||||||
|
validator: function (v) {
|
||||||
|
return !/[:<>/]/.test(v);
|
||||||
|
}
|
||||||
|
}
|
||||||
],
|
],
|
||||||
buttons: [
|
buttons: [
|
||||||
{text: _('ID_SAVE'), handler: SaveNewCategory},
|
{text: _('ID_SAVE'), handler: SaveNewCategory},
|
||||||
|
|||||||
Reference in New Issue
Block a user