AntonLV 7 лет назад
Родитель
Сommit
fe1edb2fc1

+ 6 - 0
modules/boonex/payment/classes/BxPaymentGridSbsAdministration.php

@@ -73,6 +73,12 @@ class BxPaymentGridSbsAdministration extends BxBaseModPaymentGridOrders
         $aStates = array(0 => 'no', 1 => 'yes');
         return parent::_getCellDefault(_t('_bx_payment_txt_' . $aStates[(int)$mixedValue]), $sKey, $aField, $aRow);
     }
+    protected function _addJsCss()
+    {
+        parent::_addJsCss();
+
+        $this->_oTemplate->addJsTranslation('_bx_payment_msg_confirm_cancelation');
+    }
 }
 
 /** @} */

+ 1 - 0
modules/boonex/payment/install/langs/en.xml

@@ -215,6 +215,7 @@
 	<string name="_bx_payment_msg_successfully_performed"><![CDATA[The action was successfully performed.]]></string>
 	<string name="_bx_payment_msg_successfully_processed_free"><![CDATA[Free item was successfully processed]]></string>
 	<string name="_bx_payment_msg_cancelation_request_sent"><![CDATA[Cancellation request was sent. Please wait.]]></string>
+        <string name="_bx_payment_msg_confirm_cancelation"><![CDATA[Are you sure you want to cancel your subscription?]]></string>
 	<string name="_bx_payment_err_access_db"><![CDATA[Database access error.]]></string>
 	<string name="_bx_payment_err_cannot_validate"><![CDATA[Can't connect to remote host for validation.]]></string>
 	<string name="_bx_payment_err_empty_items"><![CDATA[There are no items selected.]]></string>

+ 3 - 3
modules/boonex/payment/js/subscriptions.js

@@ -49,10 +49,10 @@ BxPaymentSubscriptions.prototype.cancel = function(oLink, iId, sGrid) {
 
 	var oParams = {};
 	if(sGrid != undefined)
-		oParams.grid = sGrid;
+            oParams.grid = sGrid;
 
-	bx_confirm('', function() {
-		$this._performRequest(oLink, iId, 'subscription_cancel', oParams);
+	bx_confirm(_t('_bx_payment_msg_confirm_cancelation'), function() {
+            $this._performRequest(oLink, iId, 'subscription_cancel', oParams);
 	});
 };
 

+ 1 - 0
modules/boonex/russian/data/langs/bx_payment/ru.xml

@@ -215,6 +215,7 @@
 	<string name="_bx_payment_msg_successfully_performed"><![CDATA[Действие было успешно выполнено.]]></string>
 	<string name="_bx_payment_msg_successfully_processed_free"><![CDATA[Бесплатный товар был успешно обработан.]]></string>
 	<string name="_bx_payment_msg_cancelation_request_sent"><![CDATA[Запрос на отмену был отправлен. Пожалуйста, ждите.]]></string>
+        <string name="_bx_payment_msg_confirm_cancelation"><![CDATA[Вы уверены, что хотите отменить вашу подписку?]]></string>
 	<string name="_bx_payment_err_access_db"><![CDATA[Ошибка обращения к базе данных.]]></string>
 	<string name="_bx_payment_err_cannot_validate"><![CDATA[Не могу присоединиться к удаленному хосту для проверки данных.]]></string>
 	<string name="_bx_payment_err_empty_items"><![CDATA[Товары не выбраны.]]></string>