Правка в значении стоимости целевого действия

parent 4e1a42e8
......@@ -71,6 +71,26 @@ $(document).ready(function () {
}
}
function CheckTargetAction() {
var
targetActionValue = $('input[name=target_action]:checked', $form).val(),
$priceTitleMark = $('.price-title-mark', $form),
titleValue;
switch(targetActionValue) {
case 'load':
titleValue = '1000 показов';
break;
case 'view':
titleValue = '1000 реальных показов';
break;
case 'click':
titleValue = 'клик';
break;
}
$priceTitleMark.text(titleValue);
}
function CheckTrackingAction($check) {
var
$content = $('.tracking-action_content'),
......@@ -162,6 +182,9 @@ $(document).ready(function () {
});
});
// Переключение целевого действия:
CheckTargetAction();
// Изменение стоимости
$('input#campaign-price', $form).on('keyup', function(){
checkPriceValue();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment