fixed chromeicon css, fixed minor redirect bug

This commit is contained in:
ksjdragon 2015-02-01 12:58:18 -05:00
parent 994a7f2973
commit e096b7eb7c
4 changed files with 22 additions and 29 deletions

View File

@ -3,25 +3,6 @@ Template.checkout.helpers({
return Chromebooks.find({}, {sort: {number: 1}});
}
});
Template.checkout.events({
'click .edit': function() {
if (Roles.userIsInRole(Meteor.userId(), ['admin'])) {
Router.go('/admin');
}
else {
alert("Access Denied");
}
},
'click .teacher': function() {
if (Roles.userIsInRole(Meteor.userId(), ['admin', 'teacher'])) {
Router.go('/teacher');
}
else {
alert("Access Denied");
}
}
});
Template.checkout.rendered = function() {
$(".chckChromebooks").mCustomScrollbar({

View File

@ -28,17 +28,20 @@
.chromeicon {
height: 30px;
width: 30px;
float: right;
margin-right: 37.3%;
margin-top: .6%;
margin-left: -2%;
}
p.bottom {
padding-left:0px;
padding-top:0%;
margin-left:37.5%;
margin-left: 2.5%;
margin-right:auto;
color:#f7f7f7;
max-width:325px;
font:27px 'Lato';
display: inline;
}
div.bottom {
margin-left: auto;
margin-right: auto;
max-width: 340px;
}

View File

@ -2,8 +2,5 @@ Template.login.events({
'click .chromeicon': function() {
var randomint = Math.floor(Math.random() * (links.length - 1));
window.open(links[randomint], "_blank");
},
'click .submit': function() {
Router.go('/login');
}
})

View File

@ -26,8 +26,20 @@ Momentum.registerPlugin('slide-fade', function(options) {
var $node = $(node);
$node
.velocity('fadeOut');
.velocity('fadeOut')
.velocity('slideUp', {
easing: options.easing,
duration: options.duration,
complete: function() {
$node.remove();
done();
}
});
}
}
}
}
});