[Vtigercrm-commits] [vtiger-commits] r10266 - in /vtigercrm/branches/5.0.3/include: js/general.js utils/ListViewUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Feb 28 01:49:32 EST 2007
Author: saraj
Date: Tue Feb 27 23:49:24 2007
New Revision: 10266
Log:
attachments and notes cannot be deleted in Invoice Related List - fixed. Fixes #3095
Modified:
vtigercrm/branches/5.0.3/include/js/general.js
vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
Modified: vtigercrm/branches/5.0.3/include/js/general.js
==============================================================================
--- vtigercrm/branches/5.0.3/include/js/general.js (original)
+++ vtigercrm/branches/5.0.3/include/js/general.js Tue Feb 27 23:49:24 2007
@@ -1965,3 +1965,10 @@
else return "" + no;
}
+function confirmdelete(url)
+{
+if(confirm("Are you sure?"))
+ {
+ document.location.href=url;
+ }
+}
Modified: vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php Tue Feb 27 23:49:24 2007
@@ -756,7 +756,7 @@
$links_info .= " | <a href='javascript:confirmdelete(\"$del_link\")'> ".$app_strings["LNK_DELETE"]." </a>";
$list_header[] = $links_info;
-
+/*commented to fix: attachments and notes cant be deleted in Invoice Related List.
echo '<script>
function confirmdelete(url)
{
@@ -766,7 +766,7 @@
}
}
</script>';
-
+*/
$list_block[$entity_id] = $list_header;
}
More information about the vtigercrm-commits
mailing list