Skip to content

Commit

Permalink
New version of animate and forms, and uses demo mode :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Iskander authored and Alex Iskander committed Dec 10, 2009
1 parent e961f50 commit 66d926c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/contacts/resources/main_page.js
Expand Up @@ -4,6 +4,7 @@
// ==========================================================================
/*globals Contacts Animate */
require("views/contact");

// This page describes the main user interface for your application.
Contacts.mainPage = SC.Page.design({

Expand Down
5 changes: 4 additions & 1 deletion apps/contacts/views/contact.js
Expand Up @@ -10,6 +10,9 @@
@extends SC.View
*/

Animate.defaultTimingFunction = Animate.TRANSITION_EASE_IN_OUT;

Contacts.ContactView = SC.View.extend(
/** @scope Contacts.ContactView.prototype */ {
layout: {left:0, right:0},
Expand All @@ -21,7 +24,7 @@ Contacts.ContactView = SC.View.extend(
sc_super();
if (this.get("form") && !this.get("form").isClass) this.adjust("minHeight", this.getPath("form.layout").minHeight + 40);
},
form: Forms.FormView.design(Forms.FormAnimation, {
form: Forms.FormView.design(Forms.FormAnimation, Forms.FormAnimation.DemoMode, {
editsByDefault: NO,
layout: { left: 20, top: 20, right: 20, bottom: 20 },
contentBinding: ".parentView.content",
Expand Down
2 changes: 1 addition & 1 deletion frameworks/animate
Submodule animate updated 1 files
+151 −48 core.js
2 changes: 1 addition & 1 deletion frameworks/forms
Submodule forms updated 3 files
+12 −3 mixins/form_animation.js
+1 −1 views/form.js
+1 −1 views/form_row.js

0 comments on commit 66d926c

Please sign in to comment.