Cleaning source code for grid

This commit is contained in:
Enrique
2011-03-29 18:27:19 -04:00
parent 98bf952494
commit add67a0fa4
2 changed files with 2 additions and 11 deletions

View File

@@ -15,12 +15,6 @@ var G_Grid = function(oForm, sGridName){
this.allDependentFields = ''; //Stores all dependent fields this.allDependentFields = ''; //Stores all dependent fields
this.alertMe = function (txt){
new leimnud.module.app.alert().make( {
label : txt
});
};
this.getObjectName = function(Name){ this.getObjectName = function(Name){
var arr = Name.split(']['); var arr = Name.split('][');
var aux = arr.pop(); var aux = arr.pop();
@@ -382,7 +376,6 @@ var G_Grid = function(oForm, sGridName){
} }
} }
//Fires OnAddRow Event //Fires OnAddRow Event
//FIXME: This feature does not work in IE
if (this.onaddrow) { if (this.onaddrow) {
this.onaddrow(currentRow); this.onaddrow(currentRow);
} }
@@ -544,7 +537,6 @@ var G_Grid = function(oForm, sGridName){
} }
} }
//Fires OnAddRow Event //Fires OnAddRow Event
//FIXME: This feature does not work in IE
if (this.ondeleterow) { if (this.ondeleterow) {
this.ondeleterow(); this.ondeleterow();
} }
@@ -851,12 +843,12 @@ var G_Grid = function(oForm, sGridName){
break; break;
default: default:
if (( oCell2.innerHTML.indexOf('changeValues')==111 || oCell2.innerHTML.indexOf('changeValues')==115 ) ) { if (( oCell2.innerHTML.indexOf('changeValues')==111 || oCell2.innerHTML.indexOf('changeValues')==115 ) ) {
alert('erik2'); //alert('erik2');
break; break;
} }
if (oCell2.innerHTML.toLowerCase().indexOf('deletegridrow') == -1) { if (oCell2.innerHTML.toLowerCase().indexOf('deletegridrow') == -1) {
oCell1.innerHTML = oCell2.innerHTML; oCell1.innerHTML = oCell2.innerHTML;
alert('erik'); //alert('erik');
} }
break; break;
} }

View File

@@ -1401,7 +1401,6 @@ class XmlForm_Field_Textarea extends XmlForm_Field {
} }
if (isNewDynaform($owner)==1){ if (isNewDynaform($owner)==1){
echo 'Nuevo';
$values = array(); $values = array();
$values[] = $this->defaultValue; $values[] = $this->defaultValue;
} }