minor css fix, added chromebook sorting (code from yaman)

This commit is contained in:
ksjdragon 2015-01-28 21:37:43 -05:00
parent a59371a8fa
commit fd3e78aa28
7 changed files with 18 additions and 12 deletions

View File

@ -1,6 +1,6 @@
Template.admin.helpers({
chromebooks: function() {
return Chromebooks.find();
return Chromebooks.find({}, {sort: {number: 1}});
},
carts: function() {
return carts.find();
@ -117,6 +117,8 @@ Template.admin.events({
Template.admin.rendered = function() {
$(".border.tabs-content").mCustomScrollbar({
theme: 'dark'
theme: 'dark',
scrollInertia: 0,
mouseWheelPixels: 30
});
}

View File

@ -1,6 +1,6 @@
Template.checkout.helpers({
chromebooks: function() {
return Chromebooks.find();
return Chromebooks.find({}, {sort: {number: 1}});
}
});
@ -25,6 +25,8 @@ Template.checkout.events({
Template.checkout.rendered = function() {
$(".chckChromebooks").mCustomScrollbar({
theme: 'dark'
theme: 'dark',
scrollInertia: 0,
mouseWheelPixels: 30
});
}

View File

@ -39,3 +39,4 @@ Template.chromebook.events({
}
}
});

View File

@ -50,7 +50,7 @@ h6 {
box-shadow: 0px 5px 10px #222222;
}
.main-center, .main-center-admin {
max-height:700px;
max-height:650px;
margin-top:4%;
}
.main-center {

View File

@ -8,7 +8,7 @@
font-weight: 600;
font-size: 13px;
float: left;
padding: 13px 23.2%;
padding: 13px 23.18%;
margin: 0;
list-style: none;
cursor: pointer;
@ -19,7 +19,7 @@
border: 1px solid #ddd;
border-bottom: none;
margin-bottom: -1px !important;
padding: 13px 23.18% 14px 23.18% !important;
padding: 13px 23.15% 14px 23.15% !important;
background-color: #fff;
color: #333;
}

View File

@ -16,7 +16,7 @@ Template.teacher.helpers({
Template.teacher.helpers({
chromebooks: function() {
return Chromebooks.find();
return Chromebooks.find({}, {sort: {number: 1}});
},
carts: function() {
return carts.find();
@ -25,6 +25,8 @@ Template.teacher.helpers({
Template.teacher.rendered = function() {
$(".tchChromebooks").mCustomScrollbar({
theme: 'dark'
theme: 'dark',
scrollInertia: 0,
mouseWheelPixels: 30
});
}

View File

@ -1,7 +1,6 @@
Meteor.publish('chromebook', function() {
if (Roles.userIsInRole(this.userId, ['admin'])) {
return Chromebooks.find();
}