Phi: make header collabsible
Save some vertical pixels by clicking on the header.
This commit is contained in:
parent
14079c5b7d
commit
3fb7a64632
1 changed files with 48 additions and 37 deletions
15
Phi/main.js
15
Phi/main.js
|
@ -22,7 +22,8 @@ require.config({
|
|||
});
|
||||
|
||||
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 KnockProps(aliases) {
|
||||
|
@ -258,7 +259,6 @@ require([
|
|||
return p;
|
||||
}
|
||||
|
||||
|
||||
ko.utils.knockprops = new KnockProps();
|
||||
|
||||
ko.utils.knockprops.setAliases([
|
||||
|
@ -511,4 +511,15 @@ require([
|
|||
|
||||
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);
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue