1
0
Fork 0

Phi: make header collabsible

Save some vertical pixels by clicking on the header.
This commit is contained in:
Torsten Dreyer 2015-09-27 20:57:41 +02:00
parent 14079c5b7d
commit 3fb7a64632

View file

@ -22,7 +22,8 @@ require.config({
}); });
require([ require([
'knockout', 'jquery','sammy', 'fgcommand', 'themeswitch', 'kojqui/button', 'kojqui/buttonset', 'kojqui/selectmenu', 'jquery-ui/sortable', 'flot', 'leaflet' 'knockout', 'jquery', 'sammy', 'fgcommand', 'themeswitch', 'kojqui/button', 'kojqui/buttonset', 'kojqui/selectmenu',
'jquery-ui/sortable', 'flot', 'leaflet'
], function(ko, jquery, Sammy, fgcommand) { ], function(ko, jquery, Sammy, fgcommand) {
function KnockProps(aliases) { function KnockProps(aliases) {
@ -258,7 +259,6 @@ require([
return p; return p;
} }
ko.utils.knockprops = new KnockProps(); ko.utils.knockprops = new KnockProps();
ko.utils.knockprops.setAliases([ ko.utils.knockprops.setAliases([
@ -511,4 +511,15 @@ require([
ko.applyBindings(new PhiViewModel(), document.getElementById('wrapper')); ko.applyBindings(new PhiViewModel(), document.getElementById('wrapper'));
jquery("#toolbar").click(function() {
jquery("#content").animate({
top : 0
}, 1000, null, function() {
jquery(".htabs").css('background', '#427EBF url("images/FI_logo.svg") no-repeat scroll left center');
});
jquery("#widgetarea").animate({
top : 29
}, 1000);
});
}); });