Skip to content

Commit 1a013b4

Browse files
committed
Added confirmation before deleting website/store/storeview (#2717)
1 parent 101b8d3 commit 1a013b4

File tree

1 file changed

+3
-1
lines changed
  • app/code/core/Mage/Adminhtml/Block/System/Store

1 file changed

+3
-1
lines changed

app/code/core/Mage/Adminhtml/Block/System/Store/Edit.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ public function __construct()
6060

6161
$this->_updateButton('save', 'label', $saveLabel);
6262
$this->_updateButton('delete', 'label', $deleteLabel);
63-
$this->_updateButton('delete', 'onclick', 'setLocation(\''.$deleteUrl.'\');');
63+
$this->_updateButton('delete', 'onclick', 'confirmSetLocation(\'' .
64+
Mage::helper('core')->jsQuoteEscape(Mage::helper('core')->__('Are you sure?')) .
65+
'\', \'' . $deleteUrl . '\');');
6466

6567
if (!Mage::registry('store_data')->isCanDelete()) {
6668
$this->_removeButton('delete');

0 commit comments

Comments
 (0)