Change folder architecture !

This commit is contained in:
manzerbredes 2016-02-03 18:57:20 +01:00
parent fe06bd586a
commit c6186b71c1
10 changed files with 20 additions and 14 deletions

View file

@ -6,11 +6,11 @@ var mainApp=angular.module("mainApp",['ngRoute', 'ngSanitize']);
mainApp.config(['$routeProvider', function($routeProvider){
$routeProvider.
when('/home',{
templateUrl: 'partials/home.html',
templateUrl: 'partials/home/main.html',
controller: 'homeCtrl'
}).
when('/network',{
templateUrl: 'partials/network.html',
templateUrl: 'partials/network/main.html',
controller: 'networkCtrl'
}).otherwise({
redirectTo: '/home'

View file

@ -4,11 +4,14 @@
* and open the template in the editor.
*/
/**
* Represents a book.
* @constructor
*/
mainApp.controller('loginCtrl', function ($scope,$interval,$sce)
{
// Define default states
$('#loginModal').modal({backdrop: 'static', keyboard: false});
//$('#loginModal').modal({backdrop: 'static', keyboard: false});
$('#loadingLoginButton').hide();
$('#failedToLoginAlert').hide();

View file

@ -6,7 +6,8 @@
mainApp.controller('statusCtrl', function ($scope,$interval,$sce)
{
$scope.username="John Doe";
$scope.projectname="Web Server";
// Update status every 2 seconds
/*$interval(function(){
var status=identity.fetchStatus();