This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
content: SC.ContainerView.design({ | |
layout: { left: 250, top: 0, bottom: 0, right: 0 }, | |
nowShowing: 'Settings.BankView' | |
}) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$user = $userDao->get(); | |
$user->username = 'enyo'; | |
$user->find(); // Calls $userDao->find($this) internally | |
$users = $userDao->get(); | |
$users->firstName = 'Matthias'; | |
foreach ($users->findAll() as $user) { /* blabla */ } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@view(sc-button-view).main-menu-button { | |
background: none; | |
.sc-button-main-menu-image { | |
width: 40px; | |
height: 40px; | |
display: block; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.sc-theme .sc-view.sc-button-view.main-menu-button { | |
background: none; | |
.sc-button-main-menu-image { | |
width: 40px; | |
height: 40px; | |
display: block; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add initial buildfile information here | |
config :all, :required => [:sproutcore ], :theme => :'inc_theme' | |
config :inventory, :required => [:sproutcore, :"inc" ], :title=>"Inventory" | |
config :settings, :required => [:sproutcore, :"inc" ], :title=>"Settings" | |
# The proxy may needs adaption | |
proxy '/proxy/', :to => "localhost", :url => '/inc-proxy/', :protocol => 'http' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enyo@matbook:inc-frontend $ ../abbot/bin/sc-build settings --verbose | |
INFO ~ Loaded project at: /Volumes/CaseFS/git/inc-frontend | |
INFO ~ Building targets: /settings | |
INFO ~ Building languages: de,en | |
INFO ~ Building manifest for: /settings:de | |
INFO ~ Building manifest for: /settings:en | |
INFO ~ Building entries for /settings:de... | |
INFO ~ javascript.js -> tmp/build/static/settings/de/00bd0c774e5be91999c75f0937c60d65575b3f77/javascript.js | |
INFO ~ Compressing CSS with YUI .... /Volumes/CaseFS/git/inc-frontend/tmp/staging/static/inc_theme/de/2d94377a36363b73b41fc811a4be0366670d7cbe/stylesheet__2.css | |
INFO ~ Compressing with YUI: /Volumes/CaseFS/git/inc-frontend/tmp/staging/static/inc_theme/de/2d94377a36363b73b41fc811a4be0366670d7cbe/javascript-packed__5.js... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tagGroups = Inc.store.find(Inc.ALL_TAG_GROUPS_QUERY); | |
Inc.allTagGroupsController.set('content', tagGroups); | |
Inc.allTagGroupsController.get('selection').clear(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The Tag model | |
isAssignedToSelectedArticle: function(key, value) { | |
// writing ... | |
if (value !== undefined) { | |
if (value === true) { | |
Inventory.editedArticleController.get('tags').pushObject(this); | |
} | |
else { | |
Inventory.editedArticleController.get('tags').popObject(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// handle checkbox | |
key = this.getDelegateProperty('contentCheckboxKey', del) ; | |
if (key) { | |
value = content ? (content.get ? content.get(key) : content[key]) : NO ; | |
this.renderCheckbox(working, value); | |
classArray.push('has-checkbox'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clearSelection: function() { | |
// When the content changes, reset the selection. | |
this.set('selection', null); | |
}.observes('content') |