Skip to content

Instantly share code, notes, and snippets.

View erichocean's full-sized avatar

Erich Ocean erichocean

  • Xy Group Ltd
  • North Carolina
View GitHub Profile
require('core');
require('models/record');
OI.Folder = OI.Record.extend({
dataSource: SC.Store,
_mailboxes: null,
init: function() { this._isLoading = false; this._mailboxes = { lastUpdatedAt: null, value: [] }; },
mailboxes: function() {
require('core');
require('models/message');
OI.messagesController = SC.ArrayController.create({
allowsEmptySelection: false,
allowsMultipleSelection: true,
contentBinding: 'OI.mailboxController.messages',
contentBindingDefault: SC.Binding.Multiple,
// ==========================================================================
// OI.MailboxController
// ==========================================================================
require('core');
/** @class
(Document Your View Here)
require('core');
OI.IframeView = SC.View.extend({
content: null,
contentBindingDefault: SC.Binding.SingleNotEmpty, // shouldn't be necessary, but is *grrr* (strips the outer array)
emptyElement: '<iframe></iframe>',
frameBorder: 0,
isFlashVisible: NO,
_isFlashVisible: NO, // for animation
isFlashVisibleBinding: 'OI.flashController.firstMessage',
isFlashVisibleBindingDefault: SC.Binding.Bool,
isFlashVisibleObserver: function () {
if (this.isFlashVisible != this._isFlashVisible && !this._wrapperAnimation) {
this._wrapperAnimation = Animator.apply( SC.page.get('wrapper').rootElement, "top: 0px;", { duration: 200 });
}
<!--==============================================================================
Filename: {REDBULL_DIR}/english.lproj/body.rhtml
Authors: Erich Ocean (erich@atlasocean.com)
Changed: $Version$
Since: $Version$
Copyright: Copyright (c) 2008 Erich Atlas Ocean All rights reserved.
License: The license terms for this client are contained in:
{REDBULL_DIR}/license.js
==============================================================================-->
<% # SPROUTCORE DEFAULT INDEX TEMPLATE
# This template provide provides a basic wrapper for a SproutCore client.
# Most of the time, it will be sufficient for your own needs. However, if
# you need to create your own template, you can do so by copying this file
# into your client, naming it 'index.rhtml' and then adding the options
# :index => 'index' to your client declaration in routes.rb.
#
# See the comments in this file for more information on what you can
# change.
-%>
SC.AUTORESIZE_BORDERS = 'borders';
SC.AUTORESIZE_WIDTH = 'width';
SC.AUTORESIZE_RIGHT = 'right';
SC.AUTORESIZE_LEFT = 'left';
SC.AUTORESIZE_HEIGHT = 'height';
SC.AUTORESIZE_TOP = 'top';
SC.AUTORESIZE_BOTTOM = 'bottom';
SC.AUTORESIZE_WIDTH_HEIGHT = 'width+height';
SC.AUTORESIZE_WIDTH_TOP = 'width+top';
SC.AUTORESIZE_WIDTH_BOTTOM = 'width+bottom';
SC.page = SC.Page.create({
layoutSize: { width: 800, height: 600 }, // the size we used to position everything statically...
marginInset: SC.View.create({
outlets: ['projectNameLabel','appProjectDirLabel','projectAppsScroller','appNameLabel','appDirLabel','appFilesScroller'],
autoresize: SC.AUTORESIZE_WIDTH_HEIGHT,
layout: { x: 0, y: 0, width: 400, height: 300 },
projectNameLabel: SC.LabelView.create({
// ==========================================================================
// myApp.MainMenuController
// ==========================================================================
require('core');
/** @class
(Document Your View Here)