Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($tabId = (string) $this->getRequest()->getParam('tab')) {
- Mage::getSingleton('admin/session')->setActiveTabId($tabId);
- }
- $this->_formScripts[] = '
- function saveAndContinueEdit(){
- editForm.submit($("edit_form").action+"back/edit/");
- }
- function delPhone(phoneId){
- if (window.confirm("Are you sure you want to delete this phone number?")){
- new Ajax.Request("' . Mage::helper('adminhtml')->getUrl('*/*/deletePhone') . '", {
- method: "Post",
- parameters: { "phoneId": phoneId },
- onComplete: function(transport){
- vendorPhone.delPhone(phoneId);
- }
- });
- }
- }
- function delEmail(emailId){
- var confirm = false;
- if (window.confirm("Are you sure you want to delete this email?")){
- new Ajax.Request("' . Mage::helper('adminhtml')->getUrl('*/*/deleteEmail') . '", {
- method: "Post",
- parameters: { "emailId": emailId },
- onComplete: function(transport){
- vendorEmail.delEmail(emailId);
- }
- });
- }
- }
- ';
- protected function _getSaveAndContinueUrl()
- {
- return $this->getUrl('*/*/save', array(
- '_current' => true,
- 'back' => 'edit',
- 'tab' => '{{tab_id}}',
- 'active_tab'=> null,
- ));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement