Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/app/templates/filer.html
diff options
context:
space:
mode:
authorSebastian Silva <sebastian@sugarlabs.org>2011-11-16 12:20:33 (GMT)
committer Sebastian Silva <sebastian@sugarlabs.org>2011-11-16 12:40:15 (GMT)
commitc5773b9e8b494d06e39580d6830edb3c71b9d075 (patch)
tree5a108e88b3ef71f42f4789dded2f6c72b8c46932 /app/templates/filer.html
parent60abf6eb8f5173f17be88d24bc2fc889820133f6 (diff)
UI Tweak.
Diffstat (limited to 'app/templates/filer.html')
-rw-r--r--app/templates/filer.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/templates/filer.html b/app/templates/filer.html
index 18ce136..02dc734 100644
--- a/app/templates/filer.html
+++ b/app/templates/filer.html
@@ -40,7 +40,7 @@
</div>
<div style="width:${width}px;" id="filer" >
- <div py:if="files == []" style="width:100%;text-align:center;color:gray;">
+ <div id="noproject" py:if="files == []" style="color:gray;">
no active project
</div>
<ul>
@@ -57,6 +57,12 @@
</ul>
</div>
<script>
+jQuery.fn.center = function () {
+ this.css("position","absolute");
+ this.css("top", (($(window).height() - this.outerHeight()) / 2) + $(window).scrollTop() + "px");
+ this.css("left", (($(window).width() - this.outerWidth()) / 2) + $(window).scrollLeft() + "px");
+ return this;
+ }
document.ready = function() {
$('.file').corner("15px");
$("#filer").show("slow");
@@ -64,6 +70,7 @@ document.ready = function() {
$('#filer img').hide();
$('#filer span').show();
}*/
+ $('#noproject').center();
$( "input:button" ).button();
};
</script>