BUG 9288 Change the source code to permite negative numbers in currency fields (IE) SOLVED

- Don't works on IE
- Add validation for IE browser
This commit is contained in:
Julio Cesar Laura
2012-09-17 17:08:41 -04:00
parent 9f22dfafca
commit 1d351cc97d
6 changed files with 161 additions and 158 deletions

View File

@@ -1021,7 +1021,7 @@ function G_Text(form, element, name)
break;
case 45:
if (me.mType == 'currency') {
newValue = currentValue.substring(0, currentValue.length);
newValue = currentValue.substring(0, currentValue.length).split('');
for (var numI = 0; newValue.length > numI; numI++) {
var campVal = newValue[numI];
if ((typeof(campVal) === 'number' || typeof(campVal) === 'string') && (campVal !== '') && (!isNaN(campVal))) {
@@ -1038,6 +1038,9 @@ function G_Text(form, element, name)
}
}
}
if (newValue.join) {
newValue = newValue.join('');
}
}
break;
default:

View File

@@ -72,7 +72,7 @@ var maborak = function(forceCssLoad){
/* create Stylesheet BEGIN */
//erik: Now the core css is available just by demand
if (this.forceCssLoad === true) {
console.log('cargo css');
//console.log('cargo css');
var st =$dce('link');
st.rel ='stylesheet';
st.type ='text/css';

View File

@@ -237,7 +237,7 @@ leimnud.Package.Public({
if(this.drop.selected!==false)
{
var inp = this.drop.elements[this.drop.selected].value;
console.log(this.options.panel[inp]);
//console.log(this.options.panel[inp]);
//console.info("========================");
//console.info(i+":"+this.drop.selected);
//console.info(this.drop.elements[this.drop.selected].value);

View File

@@ -493,7 +493,7 @@ leimnud.Package.Public({
this.group={
elements:[
{text:'New Element',launch:function(){
console.log(this)
//console.log(this)
}.extend(this)},
]
};

View File

@@ -271,7 +271,7 @@
var idUnique = md5(PRO_UID+APP_UID+TAS_UID+DYN_UID);
console.log(window.content);
//console.log(window.content);
var tabData = Ext.util.JSON.encode(historyDynaformGridHistoryGlobal);
var tabName = 'historyDynaformGridHistory_'+idUnique;

View File

@@ -101,7 +101,7 @@ function finishInstallation()
}
function _redirect(_uri){
console.log('redirecting:: '+_uri);
//console.log('redirecting:: '+_uri);
window.location = _uri;
}