mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
More controller work
This commit is contained in:
2340
dist/ionic-ios7.css
vendored
2340
dist/ionic-ios7.css
vendored
File diff suppressed because it is too large
Load Diff
8
dist/ionic.css
vendored
8
dist/ionic.css
vendored
@ -247,7 +247,7 @@ sub {
|
||||
fieldset {
|
||||
margin: 0 2px;
|
||||
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.
|
||||
@ -1856,7 +1856,7 @@ select:focus,
|
||||
input[type="file"]:focus,
|
||||
input[type="radio"]:focus,
|
||||
input[type="checkbox"]:focus {
|
||||
outline: thin dotted #333;
|
||||
outline: thin dotted #333333;
|
||||
outline: 5px auto -webkit-focus-ring-color;
|
||||
outline-offset: -2px; }
|
||||
|
||||
@ -2177,7 +2177,7 @@ input[type="checkbox"][readonly] {
|
||||
border: none;
|
||||
background: none; }
|
||||
.button.button-icon:active, .button.button-icon.active {
|
||||
text-shadow: 0px 0px 10px #fff;
|
||||
text-shadow: 0px 0px 10px white;
|
||||
box-shadow: none;
|
||||
background: none; }
|
||||
|
||||
@ -2360,7 +2360,7 @@ a.button {
|
||||
width: 100%;
|
||||
background-color: white;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #ddd; }
|
||||
border: 1px solid #dddddd; }
|
||||
|
||||
.card-header {
|
||||
padding: 10px;
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
#splash-view .ionic-logo {
|
||||
}
|
||||
|
||||
#splash-view, #signup-view, #login-view {
|
||||
#splash-view, #signup-view {
|
||||
background: url('../img/splash.png') no-repeat transparent;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
@ -124,9 +124,22 @@ angular.module('ionic.todo.controllers', ['ionic.todo'])
|
||||
|
||||
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
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user