diff options
author | Diego <diegolparra@gmail.com> | 2014-01-14 02:27:23 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-01-14 02:27:23 -0300 |
commit | 22632e486b8ddcf437fa6ca5e2a2f8b75de5f4f6 (patch) | |
tree | 8e4380ed9b918f74431a7041b66582c2734dec84 /kamon-dashboard/src/main/resources/web/js/app.js | |
parent | 111ea55690351d0903e9902c525c781ef2d743a8 (diff) | |
download | Kamon-22632e486b8ddcf437fa6ca5e2a2f8b75de5f4f6.tar.gz Kamon-22632e486b8ddcf437fa6ca5e2a2f8b75de5f4f6.tar.bz2 Kamon-22632e486b8ddcf437fa6ca5e2a2f8b75de5f4f6.zip |
WIP:Kamon Dashboard refactor
Diffstat (limited to 'kamon-dashboard/src/main/resources/web/js/app.js')
-rw-r--r-- | kamon-dashboard/src/main/resources/web/js/app.js | 33 |
1 files changed, 5 insertions, 28 deletions
diff --git a/kamon-dashboard/src/main/resources/web/js/app.js b/kamon-dashboard/src/main/resources/web/js/app.js index c0c47998..e1a73791 100644 --- a/kamon-dashboard/src/main/resources/web/js/app.js +++ b/kamon-dashboard/src/main/resources/web/js/app.js @@ -1,32 +1,9 @@ 'use strict'; -angular.module('kamon', ['kamonServices','highcharts-ng']); +angular.module('dashboard', ['dashboard.services','ui.bootstrap','nvd3ChartDirectives']); +//funtion to fade left panel +$(document).ready(function() { + $(".alert").addClass("in").fadeOut(4500); +}); -$(function() { - $( ".column" ).sortable({ - connectWith: ".column" - }); - - $( ".portlet" ).addClass( "ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" ) - .find( ".portlet-header" ) - .addClass( "ui-widget-header ui-corner-all" ) - .prepend( "<span class='ui-icon ui-icon-minusthick'></span>") - .end() - .find( ".portlet-content" ); - - $( ".portlet-header .ui-icon" ).click(function() { - $( this ).toggleClass( "ui-icon-minusthick" ).toggleClass( "ui-icon-plusthick" ); - $( this ).parents( ".portlet:first" ).find( ".portlet-content" ).toggle(); - }); - - $( ".column" ).disableSelection(); - - document.getElementById('fullscreenButton').addEventListener('click', function () { - if (screenfull.enabled) { - screenfull.request(); - } else { - // Ignore or do something else - } - }); -});
\ No newline at end of file |