[Vtigercrm-commits] [vtiger-commits] r6199 - /vtigercrm/trunk/Smarty/templates/Rss.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri May 19 15:17:10 EDT 2006
Author: don
Date: Fri May 19 13:17:06 2006
New Revision: 6199
Log:
validation added for Rss delete
Modified:
vtigercrm/trunk/Smarty/templates/Rss.tpl
Modified: vtigercrm/trunk/Smarty/templates/Rss.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Rss.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Rss.tpl Fri May 19 13:17:06 2006
@@ -35,12 +35,18 @@
}
function DeleteRssFeeds(id)
{
- show('status');
- var feed = 'feed_'+id;
- document.getElementById(feed).parentNode.removeChild(document.getElementById(feed));
- var ajaxObj = new Ajax(ajaxRssFeedResponse);
- var urlstring = 'module=Rss&return_module=Rss&action=RssAjax&vtigerfile=Delete&directmode=ajax&record='+id;
- ajaxObj.process("index.php?",urlstring);
+ if(id != '')
+ {
+ if(confirm('Are you sure to delete the rss feed?'))
+ {
+ show('status');
+ var feed = 'feed_'+id;
+ document.getElementById(feed).parentNode.removeChild(document.getElementById(feed));
+ var ajaxObj = new Ajax(ajaxRssFeedResponse);
+ var urlstring = 'module=Rss&return_module=Rss&action=RssAjax&vtigerfile=Delete&directmode=ajax&record='+id;
+ ajaxObj.process("index.php?",urlstring);
+ }
+ }
}
function SaveRssFeeds()
{
More information about the vtigercrm-commits
mailing list