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') |
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
// ========================================================================== | |
// Project: Inc.CheckboxListItemView | |
// Copyright: ©2010 My Company, Inc. | |
// ========================================================================== | |
/*globals Inc */ | |
/** @class | |
(Document Your View Here) |
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
// Setting the tags | |
var tagGroups = Inc.store.find(Inc.ALL_TAG_GROUPS_QUERY); | |
Inc.allTagGroupsController.set('content', tagGroups); | |
// The controller in question |
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 first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(60deg, #f06, yellow); | |
min-height: 100%; |
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
elements = [ ] | |
className = "boa" | |
elements.push """<div class="#{className}">bli</div>""" | |
elements.push """<div class="#{className}">bli</div>""" | |
elements.push """<div class="#{className}">bli</div>""" | |
$("#container").html elements.join "" |
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
App.Model = DS.Model.extend | |
namingConvention: | |
keyToJSONKey: (key) -> key | |
foreignKey: (key) -> key | |