5 changed files with 38 additions and 8 deletions
@ -1,18 +1,20 @@ |
|||
.card { |
|||
/* Add shadows to create the "card" effect */ |
|||
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); |
|||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); |
|||
transition: 0.3s; |
|||
} |
|||
|
|||
/* On mouse-over, add a deeper shadow */ |
|||
.card:hover { |
|||
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2); |
|||
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); |
|||
cursor: default; |
|||
} |
|||
|
|||
/* Add some padding inside the card container */ |
|||
.card-body { |
|||
padding: 2px 16px; |
|||
} |
|||
.is-selected{ |
|||
|
|||
.is-selected { |
|||
border: solid #bfbfe3; |
|||
} |
|||
@ -1,3 +1,22 @@ |
|||
(function () { |
|||
|
|||
abp.widgets.PaymentWidget = function ($wrapper) { |
|||
var widgetManager = $wrapper.data('abp-widget-manager'); |
|||
|
|||
var init = function (filters) { |
|||
$wrapper |
|||
.find('.address-list .card') |
|||
.click(function () { |
|||
var $this = $(this); |
|||
var addressId = $this.attr('data-address-id'); |
|||
abp.utils.setCookieValue("selected-address", addressId); |
|||
debugger; |
|||
$this.parents(".address-list").find('.card').removeClass("is-selected"); |
|||
$this.addClass("is-selected"); |
|||
}); |
|||
}; |
|||
|
|||
return { |
|||
init: init |
|||
}; |
|||
}; |
|||
})(); |
|||
Loading…
Reference in new issue