Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Changeset 4883

Show
Ignore:
Timestamp:
07/09/08 17:08:20 (4 months ago)
Author:
machosry
Message:

addresshierarchy: modified addresshierarchyTree.jsp. added few enhancements

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs-modules/addresshierarchy/web/module/addresshierarchyTree.jsp

    r4881 r4883  
    120120     this.controller = dojo.widget.manager.getWidgetById(controllerId); 
    121121     var rad = this.controller; 
    122      var newname = prompt("Enter the location name",""); 
     122     var newname = prompt("Enter the location name",oldname); 
    123123     AddressHierarchy.editLocation(parid,oldname,newname, function(){ 
    124124        node.edit({title:newname}); 
     
    138138     var ctxMenu = this.djWdgt.createWidget("TreeContextMenu",{}); 
    139139     ctxMenu.addChild(this.djWdgt.createWidget( 
    140        "TreeMenuItem",{caption:"Add Location", 
     140       "TreeMenuItem",{caption:"Add Location Component", 
    141141         widgetId:"ctxAdd"})); 
    142142     ctxMenu.addChild(this.djWdgt.createWidget( 
    143        "TreeMenuItem",{caption:"Edit Location", 
     143       "TreeMenuItem",{caption:"Edit Location Component", 
    144144         widgetId:"ctxEdit"})); 
    145145     ctxMenu.addChild(this.djWdgt.createWidget( 
    146        "TreeMenuItem",{caption:"Delete Location", 
     146       "TreeMenuItem",{caption:"Delete Location Component", 
    147147         widgetId:"ctxDelete"})); 
    148148     document.body.appendChild(ctxMenu.domNode);