moving working to the corner

This commit is contained in:
John Mitchell
2015-05-11 11:24:19 -04:00
parent 11eb4d325b
commit e402f4dced
2 changed files with 15 additions and 9 deletions

View File

@@ -590,23 +590,22 @@ angular.module('Utilities', ['RestServices', 'Utilities', 'sanitizeFilter'])
.factory('Wait', ['$rootScope', .factory('Wait', ['$rootScope',
function ($rootScope) { function ($rootScope) {
return function (directive) { return function (directive) {
var docw, doch, spinnyw, spinnyh, x, y; var docw, doch, spinnyw, spinnyh;
if (directive === 'start' && !$rootScope.waiting) { if (directive === 'start' && !$rootScope.waiting) {
$rootScope.waiting = true; $rootScope.waiting = true;
docw = $(window).width(); docw = $(window).width();
doch = $(window).height(); doch = $(window).height();
spinnyw = $('.spinny').width(); spinnyw = $('.spinny').width();
spinnyh = $('.spinny').height(); spinnyh = $('.spinny').height();
x = (docw - spinnyw) / 2;
y = (doch - spinnyh) / 2;
$('.overlay').css({ $('.overlay').css({
width: $(document).width(), width: $(document).width(),
height: $(document).height() height: $(document).height()
}).fadeIn(); }).fadeIn();
$('.spinny').css({ $('.spinny').css({
top: y, bottom: 15,
left: x right: 15
}).fadeIn(400); }).fadeIn(400);
console.log("got here");
} else if (directive === 'stop' && $rootScope.waiting) { } else if (directive === 'stop' && $rootScope.waiting) {
$('.spinny, .overlay').fadeOut(400, function () { $('.spinny, .overlay').fadeOut(400, function () {
$rootScope.waiting = false; $rootScope.waiting = false;

View File

@@ -361,8 +361,8 @@ textarea.allowresize {
display: none; display: none;
position: fixed; position: fixed;
z-index: 2000; z-index: 2000;
width: 75px; width: 138px;
height: 75px; height: 50px;
text-align:center; text-align:center;
color: #eee; color: #eee;
background-color: @black; background-color: @black;
@@ -371,8 +371,15 @@ textarea.allowresize {
padding-top: 10px; padding-top: 10px;
p { p {
padding-top: 10px; padding-top: 0px;
font-size: 11px; font-size: 18px;
text-align: right;
margin-right: 10px;
}
i {
float: left;
margin-left: 10px;
} }
} }