I was wondering if it is possible to refresh the page once a new note/attachment was created on the Contacts module.
Here's what I am trying to do:
On Contacts module, I have the History Subpanel. I click on Create Note or Attachment and subsequently create my note. When I hit Save, I see the subpanel being refreshed. I want the whole page to refresh as well. Can this be done?
So far, I have tried changing
...\nclude\Smarty\plugins\function.sugar_button where it says case "SUBPANELSAVE": to this:
But it didn't work. Is this even possible? I am looking at SUGAR.subpanelUtils.inlineSave, but I am not sure if it's customizable. Any ideas?PHP Code:return '{if $bean->aclAccess("save")}<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="this.form.action.value=\'Save\';if(check_form(\''.$view.'\'))return SUGAR.subpanelUtils.inlineSave(this.form.id, \'' . $params['module'] . '_subpanel_save_button\');window.location.reload();return false;" type="submit" name="' . $params['module'] . '_subpanel_save_button" id="' . $params['module'] . '_subpanel_save_button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">{/if} ';
I appreciate any help! Thanks in advance.
Krizel


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks