From 667b5d0709f57c6e846b84089c9cd88564e43fb5 Mon Sep 17 00:00:00 2001 From: Eike Foken Date: Wed, 10 Aug 2011 13:57:17 +0200 Subject: [PATCH] Implement prototype for project selection --- application/views/header.php | 7 ++++++- assets/css/style.css | 6 ++++++ assets/js/scattport.js | 7 +++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/application/views/header.php b/application/views/header.php index a314f64..71adf1f 100644 --- a/application/views/header.php +++ b/application/views/header.php @@ -16,12 +16,17 @@ - diff --git a/assets/css/style.css b/assets/css/style.css index 0e2ae6f..a453038 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -75,6 +75,12 @@ li { margin-left: 20px;} text-decoration: none; } +#header .status { + float: left; + line-height: 45px; + padding: 12px 20px; +} + #header .menu { float: right; line-height: 45px; diff --git a/assets/js/scattport.js b/assets/js/scattport.js index fcb6b0e..04f7cff 100644 --- a/assets/js/scattport.js +++ b/assets/js/scattport.js @@ -173,4 +173,11 @@ $(document).ready(function() { }).mouseout(function() { $(this).removeClass('editable'); }); + + $('select[name="activeProject"]').bind('change', function () { + var url = $(this).val(); + if (url) { + window.location = url; + } + }); });