Changeset 2354


Ignore:
Timestamp:
Jan 24, 2010 6:42:15 AM (9 years ago)
Author:
kapilt
Message:

better confirmation handling for version deletion

Location:
ore.bigfile/trunk/ore/bigfile
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ore.bigfile/trunk/ore/bigfile/browser.py

    r2353 r2354  
    140140    def handleDelete(self, action, data): 
    141141        version_id = self.getVersion() 
     142        if version_id is None: 
     143            return 
    142144        self.versions.delete("revno:%s"%(version_id)) 
    143145        self.status_message = "Version Deleted" 
  • ore.bigfile/trunk/ore/bigfile/versions.pt

    r2353 r2354  
    140140             if (dialog.length){ return }; 
    141141             button.after(dialog_html); 
    142              $("#version-confirm-yes").bind("click", function(){$("#version-form").submit()}); 
     142             $("#version-confirm-yes").bind("click", function(){ 
     143                 button.unbind("click"); 
     144                 button.click(); 
     145             });                          
    143146             $("#version-confirm-no").bind("click", function(evt){ 
    144147                 $("#version-confirm").remove(); 
Note: See TracChangeset for help on using the changeset viewer.