summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2012-10-28 16:48:30 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2012-10-28 16:48:30 +0100
commit99ba05e766defb746284d6e93829fa81eebd530c (patch)
tree2af61e583ed20678b6a62ea3eafc84b00b942e37 /core/js/js.js
parent71435ac1ccdceb75342202c86a763b4f3f7c8b0e (diff)
parenta6f3a570c68440eeb51d8b25cf7a1cef0f723a15 (diff)
downloadnextcloud-server-99ba05e766defb746284d6e93829fa81eebd530c.tar.gz
nextcloud-server-99ba05e766defb746284d6e93829fa81eebd530c.zip
Merge branch 'navigation' of github.com:owncloud/core into navigation
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/core/js/js.js b/core/js/js.js
index d0399063cfc..ee8bdea7255 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -469,44 +469,8 @@ function object(o) {
}
-/**
- * Fills height of window. (more precise than height: 100%;)
- */
-function fillHeight(selector) {
- if (selector.length === 0) {
- return;
- }
- var height = parseFloat($(window).height())-selector.offset().top;
- selector.css('height', height + 'px');
- if(selector.outerHeight() > selector.height()){
- selector.css('height', height-(selector.outerHeight()-selector.height()) + 'px');
- }
-}
-
-/**
- * Fills height and width of window. (more precise than height: 100%; or width: 100%;)
- */
-function fillWindow(selector) {
- if (selector.length === 0) {
- return;
- }
- fillHeight(selector);
- var width = parseFloat($(window).width())-selector.offset().left;
- selector.css('width', width + 'px');
- if(selector.outerWidth() > selector.width()){
- selector.css('width', width-(selector.outerWidth()-selector.width()) + 'px');
- }
-}
-
$(document).ready(function(){
- $(window).resize(function () {
- fillHeight($('#leftcontent'));
- fillWindow($('#content'));
- fillWindow($('#rightcontent'));
- });
- $(window).trigger('resize');
-
if(!SVGSupport()){ //replace all svg images with png images for browser that dont support svg
replaceSVG();
}else{