[turba] Global Delete Patch Submission

steve at populus.com steve at populus.com
Mon Dec 8 13:18:48 PST 2003


Patch Submission:

	We were part of the patch release that had a javscript comfirm
before deleting individual contacts via the 'Trashcan'.  But the last
patch did not have any comfirmation functionality for the  Checked
Contacts 'Delete' link in the addressbook header.   We updated the
javascript function to confirm on those delete submissions as well.

Thanks,
Steve and David



Index: browse/javascript.inc
===================================================================
RCS file: /repository/turba/templates/browse/javascript.inc,v
retrieving revision 1.5
diff -r1.5 javascript.inc
50,51c50,57
<         document.contacts.actionID.value = action;
<         document.contacts.submit();
---
>     	var stat=true;
>     	if(action=='delete'){
>     		stat=confirm('<?php echo addslashes(_("Are you sure that you want to
delete the selected contacts.")) ?>');
>     	}
> 		if(stat){
> 	        document.contacts.actionID.value = action;
> 	        document.contacts.submit();
> 		}





More information about the turba mailing list