mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-02-28 16:53:23 -05:00
Some js wasn't getting loaded at login. and other fixes
This commit is contained in:
parent
7a935c250b
commit
51caa93afa
@ -161,6 +161,7 @@ GEM
|
|||||||
rdoc (~> 3.4)
|
rdoc (~> 3.4)
|
||||||
thor (>= 0.14.6, < 2.0)
|
thor (>= 0.14.6, < 2.0)
|
||||||
rake (10.0.4)
|
rake (10.0.4)
|
||||||
|
rb-fsevent (0.9.3)
|
||||||
rdoc (3.12.2)
|
rdoc (3.12.2)
|
||||||
json (~> 1.4)
|
json (~> 1.4)
|
||||||
rspec (2.8.0)
|
rspec (2.8.0)
|
||||||
@ -245,6 +246,7 @@ DEPENDENCIES
|
|||||||
netzke-core (~> 0.8.0)
|
netzke-core (~> 0.8.0)
|
||||||
pry (~> 0.9.8)
|
pry (~> 0.9.8)
|
||||||
rails (= 3.2.13)
|
rails (= 3.2.13)
|
||||||
|
rb-fsevent
|
||||||
rspec-rails (~> 2.8.1)
|
rspec-rails (~> 2.8.1)
|
||||||
sass-rails (~> 3.2.3)
|
sass-rails (~> 3.2.3)
|
||||||
shoulda-matchers (~> 1.0.0)
|
shoulda-matchers (~> 1.0.0)
|
||||||
|
@ -38,11 +38,9 @@ Ext.define('Ext.ux.form.field.ColorCombo', {
|
|||||||
submitValue:false,
|
submitValue:false,
|
||||||
readOnly: me.readOnly,
|
readOnly: me.readOnly,
|
||||||
onTriggerClick: function() {
|
onTriggerClick: function() {
|
||||||
//needs to be called twice because?
|
//show renders, so put first
|
||||||
me.picker.alignTo(me.colorField.inputEl);
|
|
||||||
me.picker.show();
|
me.picker.show();
|
||||||
me.picker.alignTo(me.colorField.inputEl);
|
me.picker.alignTo(me.colorField.inputEl);
|
||||||
me.picker.show();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
me.items.push(me.colorField);
|
me.items.push(me.colorField);
|
||||||
|
@ -0,0 +1,45 @@
|
|||||||
|
$(document).ready(function(){
|
||||||
|
$("#checkin_menu").show();
|
||||||
|
$("#checkin").click( function(e){
|
||||||
|
var username = $("#user_email").val();
|
||||||
|
var password = $("#user_password").val();
|
||||||
|
$.ajax({
|
||||||
|
type: 'POST',
|
||||||
|
url: '/api/v1/checkin',
|
||||||
|
dataType: 'json',
|
||||||
|
contentType: 'application/json',
|
||||||
|
processData: false,
|
||||||
|
data: JSON.stringify({"username": username, "password": password }),
|
||||||
|
complete: function() { },
|
||||||
|
success: function(data) {
|
||||||
|
alert("Checked IN!");
|
||||||
|
$("#user_email").val('');
|
||||||
|
$("#user_password").val('');
|
||||||
|
},
|
||||||
|
error: function(data,textStatus) {
|
||||||
|
alert( "Error: " + JSON.parse(data.responseText)["error"]);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
});
|
||||||
|
$("#checkout").click( function(e){
|
||||||
|
var username = $("#user_email").val();
|
||||||
|
var password = $("#user_password").val();
|
||||||
|
$.ajax({
|
||||||
|
type: 'POST',
|
||||||
|
url: '/api/v1/checkout',
|
||||||
|
dataType: 'json',
|
||||||
|
contentType: 'application/json',
|
||||||
|
processData: false,
|
||||||
|
data: JSON.stringify({"username": username, "password": password }),
|
||||||
|
complete: function() { },
|
||||||
|
success: function(data) {
|
||||||
|
alert("Checked OUT!");
|
||||||
|
$("#user_email").val('');
|
||||||
|
$("#user_password").val('');
|
||||||
|
},
|
||||||
|
error: function(data,textStatus) {
|
||||||
|
alert( "Error: " + JSON.parse(data.responseText)["error"]);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
});
|
||||||
|
});
|
@ -1,43 +0,0 @@
|
|||||||
$("#checkin_menu").show();
|
|
||||||
$("#checkin").click( function(e){
|
|
||||||
var username = $("#user_email").val();
|
|
||||||
var password = $("#user_password").val();
|
|
||||||
$.ajax({
|
|
||||||
type: 'POST',
|
|
||||||
url: '/api/v1/checkin',
|
|
||||||
dataType: 'json',
|
|
||||||
contentType: 'application/json',
|
|
||||||
processData: false,
|
|
||||||
data: JSON.stringify({"username": username, "password": password }),
|
|
||||||
complete: function() { },
|
|
||||||
success: function(data) {
|
|
||||||
alert("Checked IN!");
|
|
||||||
$("#user_email").val('');
|
|
||||||
$("#user_password").val('');
|
|
||||||
},
|
|
||||||
error: function(data,textStatus) {
|
|
||||||
alert( "Error: " + JSON.parse(data.responseText)["error"]);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
});
|
|
||||||
$("#checkout").click( function(e){
|
|
||||||
var username = $("#user_email").val();
|
|
||||||
var password = $("#user_password").val();
|
|
||||||
$.ajax({
|
|
||||||
type: 'POST',
|
|
||||||
url: '/api/v1/checkout',
|
|
||||||
dataType: 'json',
|
|
||||||
contentType: 'application/json',
|
|
||||||
processData: false,
|
|
||||||
data: JSON.stringify({"username": username, "password": password }),
|
|
||||||
complete: function() { },
|
|
||||||
success: function(data) {
|
|
||||||
alert("Checked OUT!");
|
|
||||||
$("#user_email").val('');
|
|
||||||
$("#user_password").val('');
|
|
||||||
},
|
|
||||||
error: function(data,textStatus) {
|
|
||||||
alert( "Error: " + JSON.parse(data.responseText)["error"]);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
});
|
|
@ -34,4 +34,3 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ en:
|
|||||||
devise:
|
devise:
|
||||||
failure:
|
failure:
|
||||||
already_authenticated: 'You are already signed in.'
|
already_authenticated: 'You are already signed in.'
|
||||||
unauthenticated: 'You need to sign in or sign up before continuing.'
|
unauthenticated: 'You need to provide your username and password or sign in/sign up before continuing.'
|
||||||
unconfirmed: 'You have to confirm your account before continuing.'
|
unconfirmed: 'You have to confirm your account before continuing.'
|
||||||
locked: 'Your account is locked.'
|
locked: 'Your account is locked.'
|
||||||
invalid: 'Invalid email or password.'
|
invalid: 'Invalid email or password.'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user