Permalink
Browse files

minor nits

  • Loading branch information...
1 parent 7cbde77 commit 1a9ad342df4e39e5d5a74ea5c81b94d95863e039 @em em committed Jul 23, 2011
Showing with 15 additions and 10 deletions.
  1. +0 −5 recurly.css
  2. +15 −4 recurly.js
  3. +0 −1 recurly.styl
View
@@ -128,11 +128,6 @@
color: #999;
font-weight: 300;
font-size: 16px;
- -webkit-user-select: none;
- -khtml-user-select: none;
- -moz-user-select: none;
- -o-user-select: none;
- user-select: none;
}
.recurly .add_ons .add_on:first-child {
border-top-left-radius: 10px;
View
@@ -1163,9 +1163,9 @@ R.buildSubscribeForm = function(options) {
var addOn = plan.addOns[i];
var $addOn = $('<div class="add_on add_on_'+ addOn.code + ' ' + (i % 2 ? 'even' : 'odd') +'">' +
- '<label class="name">'+addOn.name+'</label>' +
+ '<div class="name">'+addOn.name+'</div>' +
'<div class="field quantity">' +
- '<label class="placeholder">Qty</label>' +
+ '<div class="placeholder">Qty</div>' +
'<input type="text">' +
'</div>' +
'<div class="cost"/>' +
@@ -1186,6 +1186,17 @@ R.buildSubscribeForm = function(options) {
updateTotals();
});
+ $addOnsList.bind('selectstart', function(e) {
+ if(!$(e.target).is('.name') && !$(e.target).is('.cost')) {
+ e.preventDefault();
+ }
+ });
+
+ $addOnsList.bind('.add_ons .add_on', 'mousedown mouseup dblclick', function(e) {
+ e.preventDefault();
+ return false;
+ });
+
// Add-on click
$addOnsList.delegate('.add_ons .add_on', 'click', function(e) {
if($(e.target).closest('.quantity').length) return;
@@ -1380,14 +1391,14 @@ R.buildSubscribeForm = function(options) {
function complete() {
$form.removeClass('submitting');
- $form.find('button.subscribe').removeAttr('disabled').text('Subscribe');
+ $form.find('button.submit').removeAttr('disabled').text('Subscribe');
}
handleUserErrors(function() {
syncUserInput();
$form.addClass('submitting');
- $form.find('button.subscribe').attr('disabled', true).text('Please Wait');
+ $form.find('button.submit').attr('disabled', true).text('Please Wait');
subscription.save(
function(response) {
View
@@ -193,7 +193,6 @@ hstack(cols)
color #999
font-weight 300
font-size 16px
- user-select none
&:first-child
border-top-left-radius 10px

0 comments on commit 1a9ad34

Please sign in to comment.