More controller work

This commit is contained in:
Max Lynch
2013-10-06 18:19:51 -05:00
parent 8b6b7aecbe
commit f544d81e31
4 changed files with 21 additions and 2348 deletions

2340
dist/ionic-ios7.css vendored

File diff suppressed because it is too large Load Diff

8
dist/ionic.css vendored
View File

@ -247,7 +247,7 @@ sub {
fieldset { fieldset {
margin: 0 2px; margin: 0 2px;
padding: 0.35em 0.625em 0.75em; padding: 0.35em 0.625em 0.75em;
border: 1px solid #c0c0c0; } border: 1px solid silver; }
/** /**
* 1. Correct `color` not being inherited in IE 8/9. * 1. Correct `color` not being inherited in IE 8/9.
@ -1856,7 +1856,7 @@ select:focus,
input[type="file"]:focus, input[type="file"]:focus,
input[type="radio"]:focus, input[type="radio"]:focus,
input[type="checkbox"]:focus { input[type="checkbox"]:focus {
outline: thin dotted #333; outline: thin dotted #333333;
outline: 5px auto -webkit-focus-ring-color; outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px; } outline-offset: -2px; }
@ -2177,7 +2177,7 @@ input[type="checkbox"][readonly] {
border: none; border: none;
background: none; } background: none; }
.button.button-icon:active, .button.button-icon.active { .button.button-icon:active, .button.button-icon.active {
text-shadow: 0px 0px 10px #fff; text-shadow: 0px 0px 10px white;
box-shadow: none; box-shadow: none;
background: none; } background: none; }
@ -2360,7 +2360,7 @@ a.button {
width: 100%; width: 100%;
background-color: white; background-color: white;
border-radius: 2px; border-radius: 2px;
border: 1px solid #ddd; } border: 1px solid #dddddd; }
.card-header { .card-header {
padding: 10px; padding: 10px;

View File

@ -30,7 +30,7 @@
#splash-view .ionic-logo { #splash-view .ionic-logo {
} }
#splash-view, #signup-view, #login-view { #splash-view, #signup-view {
background: url('../img/splash.png') no-repeat transparent; background: url('../img/splash.png') no-repeat transparent;
background-size: cover; background-size: cover;
} }

View File

@ -97,7 +97,7 @@ angular.module('ionic.todo.controllers', ['ionic.todo'])
$scope.addTask = function(task) { $scope.addTask = function(task) {
var t = {}; var t = {};
t = angular.extend({ t = angular.extend({
id: $scope.user.id id: $scope.user.id
}, task); }, task);
console.log("Adding task:", t); console.log("Adding task:", t);
@ -124,9 +124,22 @@ angular.module('ionic.todo.controllers', ['ionic.todo'])
console.log("Adding project:", p); console.log("Adding project:", p);
$scope.projects.push(t); $scope.projects.push(p);
$scope.task = {}; // Reset the form
$scope.newProject = {};
}; };
// Check if we need to create an initial list
taskRef.on('value', function(snapshot) {
if(!snapshot.val()) {
var title = prompt('Create your first list:');
if(title) {
$scope.addProject({
title: title
});
}
}
});
}) })