Skip to content

Instantly share code, notes, and snippets.

centerEdit: SC.View.design({
layout: { top: 0, left: 0, right: 0, bottom: 0 },
childViews: 'editToolbar editFooter editMiddle'.w(),
editToolbar: SC.View.design({
layout: { top: 0, left: 0, right: 0, height: 36 },
classNames: ['bb-toolbar'],
childViews: 'addProperty addRelation'.w(),
addProperty: SC.ButtonView.design({
// in main.js :
var store = BB.get('store');
//var source = store._getDataSource();
//var libraries = source.fetch(store, 'BB.Library');
//var descriptions = source.fetch(store, 'BB.Description');
store.findAll('BB.Library');
store.findAll('BB.Description');
SC.MyCouchdbDataSource = SC.DataSource.extend( {
root: "/couchdb/",
database: "",
design: "",
databasePath: function(){
return this.get('root') + this.get('database');
}.property('database'),
AllowEncodedSlashes On
ProxyRequests Off
KeepAlive Off
<Proxy *>
Order deny,allow
Deny from all
Allow from localhost 192.168.0
</Proxy>
ProxyPass /couchdb http://localhost:5984/ nocanon
/**
* Global formatters
* from display to internal representation and back
*
* @author Thomas Langemann
*/
sc_require('core');
BB.mixin({
/////////////////////////////////////////////////////
// state transformers
//
goStateVdatabase: function(){
if (this.activeB) this.activeB.disconnect();
this.databaseB.connect().sync();
this.activeB = this.databaseB;
this.viewController.set('tabSelection', 'database');
},
// ==========================================================================
// Project: BB.listSelectionController
// Copyright: ©2009 My Company, Inc.
// ==========================================================================
/*globals BB */
/** @class
(Document Your Controller Here)
activeUnits: function(){
console.log('activeUnits');
var us = this.get('units');
if (us == this.previousUnits) return this.previousActiveUnits;
this.previousUnits = us;
var l = us.get('length');
var list = [];
// ==========================================================================
// Project: BB.Concept
// Copyright: ©2009 My Company, Inc.
// ==========================================================================
/*globals BB */
/** @class
(Document your Model here)
contentView: SC.ListView.design({
listItemActionProperty: 'actionClassName',
contentValueKey: "title",
contentBinding: "BB.associationListController.arrangedObjects",
//isEditable: YES,
//canReorderContent: YES,
exampleView: SC.ListItemView.extend({
renderAction: function(context, actionClassName){
context.push('<img src="',
SC.BLANK_IMAGE_URL,