atLoad method now called internally by each widget, no need to call externally. Tweak...
[infodrom/rico3] / minsrc / ricoLiveGridForms.js
index 2559e96..1721038 100644 (file)
@@ -48,7 +48,6 @@ Rico.TableEdit.prototype = {
     this.addText=Rico.getPhraseById("addRecord",this.options.RecordName);
     this.buttonHover=new Rico.HoverSet();
     this.dateRegExp=/^\s*(\w+)(\W)(\w+)(\W)(\w+)/i;
-    Rico.EditControls.atLoad();
     this.createKeyArray();
     this.createEditDiv();
     this.saveMsg=Rico.$(liveGrid.tableId+'_savemsg');
@@ -89,7 +88,7 @@ Rico.TableEdit.prototype = {
     this.responseDialog.style.display='none';
 
     var buttonOK = document.createElement('button');
-    buttonOK.appendChild(document.createTextNode('OK'));
+    buttonOK.appendChild(document.createTextNode(Rico.getPhraseById("ok")));
     Rico.eventBind(buttonOK,"click", Rico.eventHandle(this,'ackResponse'));
     this.responseDialog.appendChild(buttonOK);
 
@@ -1029,17 +1028,6 @@ Rico.EditControls = {
     this.zIndex=Math.max(this.zIndex,z+10);
   },
 
-  atLoad: function() {
-    for (var id in this.widgetList) {
-      var widget=this.widgetList[id].widget;
-      if (widget.atLoad && !widget.atLoadComplete) {
-        Rico.log("Rico.EditControls.atLoad: "+id);
-        widget.atLoad();
-        widget.atLoadComplete=true;
-      }
-    }
-  },
-
   applyTo: function(column,inputCtl) {
     var wInfo=this.widgetList[column.format.SelectCtl];
     if (!wInfo) return;