Skip to content

Commit

Permalink
updated javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
Arūnas Liuiza committed Jul 24, 2014
1 parent 24f2c99 commit a2aed3c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion js/tinycoffee.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jQuery(document).ready(function(){
rate : parent.attr('data-rate')*1,
price : parent.attr('data-price')*1,
currency : parent.attr('data-currency'),
start : parent.attr('data-default'),
}
parent.show_amount = function(val){
parent.find('.count2').text(opt.currency.replace('%s',val*opt.price));
Expand All @@ -35,7 +36,7 @@ jQuery(document).ready(function(){
slider.noUiSlider({
'range':[1,10],
'step':1,
'start':2,
'start':opt.start,
'handles':1,
'serialization':{
to: [
Expand Down
2 changes: 1 addition & 1 deletion js/tinycoffee.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions tinycoffee.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,13 @@ public static function build( $settings = false ) {
</header>
<?php endif; ?>
<?php printf(
'<section class="modal-body" data-icon="%s" data-price="%s" data-rate="%s" data-currency="%s" data-hash="%s">',
'<section class="modal-body" data-icon="%s" data-price="%s" data-rate="%s" data-currency="%s" data-hash="%s" data-default="%s">',
esc_attr( $options['coffee_icon'] ),
esc_attr( $options['coffee_price'] ),
esc_attr( $options['paypal_exchange'] ),
esc_attr( $options['coffee_currency'] ),
esc_attr( $options['coffee_hash'] )
esc_attr( $options['coffee_hash'] ),
esc_attr( $options['coffee_default'] )
) ?>
<?php if ( ! empty( $options['coffee_text'] ) ) : ?>
<div class="tiny_coffee_text">
Expand Down

0 comments on commit a2aed3c

Please sign in to comment.