BUG 0000 improving code authentication Sources

fixed maxlength and it had an error of js
This commit is contained in:
Carlos Pacha
2011-11-23 15:32:38 -04:00
parent ac6f4ae72b
commit 0f518d8800
3 changed files with 19 additions and 20 deletions

View File

@@ -21,7 +21,7 @@ Ext.onReady(function(){
xtype:'textfield', xtype:'textfield',
value:'', value:'',
width: 200, width: 200,
autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '13'}, autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '50'},
allowBlank: false, allowBlank: false,
listeners: { listeners: {
'render': function(c) { 'render': function(c) {
@@ -62,7 +62,7 @@ Ext.onReady(function(){
xtype:'textfield', xtype:'textfield',
value:'', value:'',
width: 200, width: 200,
autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '13'}, autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '50'},
allowBlank: false, allowBlank: false,
listeners: { listeners: {
'render': function(c) { 'render': function(c) {
@@ -78,7 +78,7 @@ Ext.onReady(function(){
xtype:'textfield', xtype:'textfield',
value:'389', value:'389',
width: 200, width: 200,
autoCreate: {tag: 'input', type: 'text', size: '10', autocomplete: 'off', maxlength: '13'}, autoCreate: {tag: 'input', type: 'text', size: '10', autocomplete: 'off', maxlength: '5'},
allowBlank: false, allowBlank: false,
listeners: { listeners: {
'render': function(c) { 'render': function(c) {
@@ -126,7 +126,7 @@ Ext.onReady(function(){
xtype:'textfield', xtype:'textfield',
value:sUID, value:sUID,
width: 200, width: 200,
autoCreate: {tag: 'input', type: 'text', size: '10', autocomplete: 'off', maxlength: '13'}, autoCreate: {tag: 'input', type: 'text', size: '10', autocomplete: 'off', maxlength: '128'},
allowBlank: false, allowBlank: false,
listeners: { listeners: {
'render': function(c) { 'render': function(c) {
@@ -178,7 +178,7 @@ Ext.onReady(function(){
xtype:'textfield', xtype:'textfield',
value:'', value:'',
width: 200, width: 200,
autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '13'}, autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '128'},
listeners: { listeners: {
'render': function(c) { 'render': function(c) {
c.getEl().on('keyup', function() { c.getEl().on('keyup', function() {
@@ -194,7 +194,7 @@ Ext.onReady(function(){
inputType:'password', inputType:'password',
value:'', value:'',
width: 200, width: 200,
autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '13'}, autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '32'},
listeners: { listeners: {
'render': function(c) { 'render': function(c) {
c.getEl().on('keyup', function() { c.getEl().on('keyup', function() {
@@ -210,7 +210,7 @@ Ext.onReady(function(){
xtype:'textfield', xtype:'textfield',
value:'uid', value:'uid',
width: 200, width: 200,
autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '13'}, autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '50'},
allowBlank: false, allowBlank: false,
listeners: { listeners: {
'render': function(c) { 'render': function(c) {
@@ -241,7 +241,7 @@ Ext.onReady(function(){
xtype:'textfield', xtype:'textfield',
value:'', value:'',
width: 200, width: 200,
autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '13'}, autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '200'},
allowBlank: false, allowBlank: false,
listeners: { listeners: {
'render': function(c) { 'render': function(c) {

View File

@@ -4,7 +4,7 @@
*/ */
Ext.onReady(function(){ Ext.onReady(function(){
storeAuthSources = new Ext.data.GroupingStore({ var storeAuthSources = new Ext.data.GroupingStore({
autoLoad: true, autoLoad: true,
proxy : new Ext.data.HttpProxy({ proxy : new Ext.data.HttpProxy({
url: 'authSources_Ajax?action=authSourcesNew&cmb=yes' url: 'authSources_Ajax?action=authSourcesNew&cmb=yes'
@@ -36,14 +36,13 @@ var cboxAuthSourse = new Ext.form.ComboBox({
//value: _('ID_ALL'), //value: _('ID_ALL'),
listeners:{ listeners:{
select: function(c,d,i){ select: function(c,d,i){
store.setBaseParam('auths',d.data['sType']); //nothing to do
UpdateAuthSource(d.data['sType']);
} }
} }
}); });
componAuthSourse = new Ext.form.FieldSet({ componAuthSourse = new Ext.form.FieldSet({
title: 'Available Authentication Sourc', title: 'Available Authentication Sources',
items: [ items: [
cboxAuthSourse cboxAuthSourse
] ]

View File

@@ -32,7 +32,7 @@ Ext.onReady(function(){
xtype:'textfield', xtype:'textfield',
value:'', value:'',
width: 200, width: 200,
autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '13'}, autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '50'},
allowBlank: false, allowBlank: false,
listeners: { listeners: {
'render': function(c) { 'render': function(c) {
@@ -73,7 +73,7 @@ Ext.onReady(function(){
xtype:'textfield', xtype:'textfield',
value:'', value:'',
width: 200, width: 200,
autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '13'}, autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '50'},
allowBlank: false, allowBlank: false,
listeners: { listeners: {
'render': function(c) { 'render': function(c) {
@@ -89,7 +89,7 @@ Ext.onReady(function(){
xtype:'textfield', xtype:'textfield',
value:'389', value:'389',
width: 200, width: 200,
autoCreate: {tag: 'input', type: 'text', size: '10', autocomplete: 'off', maxlength: '13'}, autoCreate: {tag: 'input', type: 'text', size: '10', autocomplete: 'off', maxlength: '5'},
allowBlank: false, allowBlank: false,
listeners: { listeners: {
'render': function(c) { 'render': function(c) {
@@ -137,7 +137,7 @@ Ext.onReady(function(){
xtype:'textfield', xtype:'textfield',
value:'', value:'',
width: 200, width: 200,
autoCreate: {tag: 'input', type: 'text', size: '10', autocomplete: 'off', maxlength: '13'}, autoCreate: {tag: 'input', type: 'text', size: '10', autocomplete: 'off', maxlength: '128'},
allowBlank: false, allowBlank: false,
listeners: { listeners: {
'render': function(c) { 'render': function(c) {
@@ -189,7 +189,7 @@ Ext.onReady(function(){
xtype:'textfield', xtype:'textfield',
value:'', value:'',
width: 200, width: 200,
autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '13'}, autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '128'},
listeners: { listeners: {
'render': function(c) { 'render': function(c) {
c.getEl().on('keyup', function() { c.getEl().on('keyup', function() {
@@ -205,7 +205,7 @@ Ext.onReady(function(){
inputType:'password', inputType:'password',
value:'', value:'',
width: 200, width: 200,
autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '13'}, autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '32'},
listeners: { listeners: {
'render': function(c) { 'render': function(c) {
c.getEl().on('keyup', function() { c.getEl().on('keyup', function() {
@@ -221,7 +221,7 @@ Ext.onReady(function(){
xtype:'textfield', xtype:'textfield',
value:'uid', value:'uid',
width: 200, width: 200,
autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '13'}, autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '50'},
allowBlank: false, allowBlank: false,
listeners: { listeners: {
'render': function(c) { 'render': function(c) {
@@ -252,7 +252,7 @@ Ext.onReady(function(){
xtype:'textfield', xtype:'textfield',
value:'', value:'',
width: 200, width: 200,
autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '13'}, autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '200'},
allowBlank: false, allowBlank: false,
listeners: { listeners: {
'render': function(c) { 'render': function(c) {