Created
July 27, 2011 10:10
-
-
Save justinpeterman/1109068 to your computer and use it in GitHub Desktop.
Actions Not Being Received
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_require('views/topbar_view'); | |
Authoring.NewExistingView = SC.PalettePane.create({ | |
firstResponder: 'Authoring.statechart', | |
layout: { width: 455, height: 275, centerX: 0, centerY: 0 }, | |
isModal:YES, | |
theme: "popover", | |
modalPane:SC.ModalPane.extend({classNames:"dark-bg"}), | |
classNames:'new-existing'.w(), | |
childViews:'toolbar'.w(), | |
contentView: SC.WorkspaceView.extend({ | |
topToolbar: SC.ToolbarView.design({ | |
childViews: 'label'.w(), | |
label: SC.LabelView.extend({ | |
layout: { top:11, height: 24, left: 20, right: 0 }, | |
//textAlign: SC.ALIGN_CENTER, | |
controlSize: SC.LARGE_CONTROL_SIZE, | |
value: "Select One" | |
}), | |
continueButton: SC.ButtonView.extend({ | |
layout: { top: 11, right:5, width: 80, height: 24 }, | |
title: "Continue", | |
action: "remove", | |
isSelected: YES, | |
}) | |
}), | |
childViews: 'newCampaign existingCampaign'.w(), | |
newCampaign: SC.View.design({ | |
layout: {left:40, top:81, height:200,width:151}, | |
childViews: 'newCampaignIcon newCampaignLabel'.w(), | |
newCampaignIcon: SC.ImageButtonView.design({ | |
layout: {width:143, height:123 }, | |
useCanvas: YES, | |
action:'newCampaignIconClicked', | |
image:'new-campaign-icon' | |
}), | |
newCampaignLabel: SC.LabelView.design({ | |
layout: {height:24, width:86, left:16, bottom:40}, | |
value: 'New Campaign', | |
classNames: 'new-existing-label'.w() | |
}) | |
}), | |
existingCampaign: SC.View.design({ | |
layout: {right:40, top:91, height:200,width:151}, | |
childViews: 'existingCampaignIcon existingCampaignLabel'.w(), | |
existingCampaignIcon: SC.ImageButtonView.design({ | |
layout: {width:151, height:113 }, | |
useCanvas: YES, | |
action:'existingCampaignIconClicked', | |
image:'existing-campaign-icon' | |
}), | |
existingCampaignLabel: SC.LabelView.design({ | |
layout: {height:24, width:107, left:10, bottom:50 }, | |
value: 'Existing Campaign', | |
classNames: 'new-existing-label'.w() | |
}) | |
}) | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment