This file contains hidden or 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
body { | |
position: absolute ; | |
left: 0px; | |
right: 0px; | |
top: 0px; | |
bottom: 0px; | |
padding: 0px; | |
margin: 0px; | |
overflow: hidden ; | |
} |
This file contains hidden or 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
<% split_view :main_split, :direction => :horizontal do %> | |
<% scroll_view :folder_source_list_scroller, :can_collapse => false ,:min_thickness => 180 do %> | |
<%= source_list_view :folder_source_list, :view => 'OI.FolderSourceView', :height => 693, :bind => { :content => 'OI.foldersController.arrangedObjects', :selection => 'OI.foldersController.selection' } %> | |
<% end %> | |
<%= split_divider_view :main_split_divider, :width => 5 %> | |
<% split_view :main, :can_collapse => false, :direction => :horizontal, :min_thickness => 180 do %> |
This file contains hidden or 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
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
ignorecase = true | |
[remote "origin"] | |
url = [email protected]:onitunes/photobooth.git | |
fetch = +refs/heads/*:refs/remotes/origin/* | |
push = refs/*:refs/* |
This file contains hidden or 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
<script type="text/javascript" src="../swfupload/swfupload.js"></script> | |
<script type="text/javascript" src="js/swfupload.queue.js"></script> | |
<script type="text/javascript" src="js/fileprogress.js"></script> | |
<script type="text/javascript" src="js/handlers.js"></script> | |
<script type="text/javascript"> | |
var swfu; | |
window.onload = function() { | |
var settings = { | |
flash_url : "../swfupload/swfupload_f9.swf", |
This file contains hidden or 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
def find_resource_entry(filename, opts={}, seen=nil) | |
extname = File.extname(filename) | |
rootname = filename.gsub(/#{extname}$/,'') | |
entry_extname = entry_rootname = nil | |
ret = entries_for(:resource, opts.merge(:hidden => :none)).reject do |entry| | |
entry_extname = File.extname(entry.filename) | |
entry_rootname = entry.filename.gsub(/#{entry_extname}$/,'') | |
ext_match = (extname.nil? || extname.size == 0) || (entry_extname == extname) |
This file contains hidden or 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
# Returns the URL for the named resource | |
def static_url(resource_name, opts = {}) | |
opts[:language] ||= language | |
entry = bundle.find_resource_entry(resource_name, opts) | |
entry.nil? ? '' : entry.cacheable_url | |
end |
This file contains hidden or 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
/** | |
Returns the name of this class. If the name is not known, triggers | |
a search. This can be expensive the first time it is called. | |
*/ | |
objectClassName: function() { | |
if (!this._objectClassName) this._findObjectClassNames() ; | |
if (this._objectClassName) return this._objectClassName ; | |
var ret = this ; | |
while(ret && !ret._objectClassName) ret = ret._type; | |
return (ret && ret._objectClassName) ? ret._objectClassName : 'Anonymous' ; |
This file contains hidden or 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
require('core'); | |
// this code just copies in the requisite SC.ButtonView behavior to enable a standard image view to function as a button | |
MyApp.ImageButtonView = SC.ImageView.extend({ | |
value: null, // could also use a CSS selector here -- see SC.ImageView | |
isEnabled: YES, | |
action: null, | |
target: null, |
This file contains hidden or 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
/** | |
Call by your subclass anytime you want the view to pick up the current | |
value from the form and post it out. | |
@param partialChange (optional) YES if this is a partial change. | |
@returns result of validation. | |
*/ | |
fieldValueDidChange: function(partialChange) { | |
// get the field value and set it. |
This file contains hidden or 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
greeting: SC.LabelView.extend({ | |
valueBinding: "OI.userController.login", | |
localize: false, | |
escapeHTML: true | |
}) |