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
| var App = SC.Application.create(); | |
| App.myVar = 'test'; | |
| App.BasicTextView = SC.View.extend({ | |
| textValue: null, | |
| textValueDidChange: function() { | |
| var jQuery = this.$(); |
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> | |
| <script src="assets/bpm_libs.js" type="text/javascript"></script> | |
| <script type="text/javascript"> | |
| spade.require('Planitly'); | |
| </script> | |
| <script type="text/x-handlebars"> | |
| <div class='container_16'> |
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
| { | |
| "name": "planitly", | |
| "version": "0.0.1", | |
| "bpm": "1.0.0", | |
| "description": "DESCRIPTION HERE", | |
| "author": "YOUR NAME HERE", | |
| "homepage": "URL", | |
| "directories": { | |
| "lib": "./lib", | |
| "tests": "./tests" |
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
| MyApp.Project = SC.Record.create({ | |
| tasks: SC.Record.toMany(...), | |
| tasksNeedUpdate: 0, | |
| tasksDidUpdate: function() { | |
| this.set('tasksNeedUpate', this.get('tasksNeedUpdate') + 1); | |
| }.observes('*[email protected]'), | |
| allTasksCompleted: function() { |
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
| selectAllClicked: function(evt) { | |
| /* | |
| * Go ahead and deselect all objects first so that we don't confuse the user | |
| */ | |
| Pharos360.studentsController.selectObject(); | |
| /* | |
| * Now, select only those students that aren't currently selected | |
| */ | |
| var students = Pharos360.filteredStudentsController.get('arrangedObjects'); |
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
| MyApp.myPopoverView = SC.PickerPane.create({ | |
| layout: { width: 300, height: 150 }, | |
| themeName: 'popover', | |
| contentView: SC.WorkspaceView.extend({ | |
| topToolbar: null, | |
| bottomToolbar: null, | |
| contentView: SC.View.extend({ |
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
| ... | |
| editingPane: MyApp.editingPane.extend({}), | |
| ... |
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
| class AuditsController < ApiController | |
| def index | |
| @audits = current_member.audit_responses.where('updated_at IS NULL').map{ |ar| ar.audit.attributes }.uniq | |
| respond_with @audits | |
| 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
| ScHerestay.RentalUnitsIndex = SC.View.extend(SC.Control, { | |
| childViews: 'list'.w(), | |
| list: SC.ScrollView.design({ | |
| layout: {top: 10, left: 2, right: 2, buttom: 5}, | |
| contentView: SC.ListView.design({ | |
| layout: {top: 0, bottom: 0, left: 0, right: 0}, | |
| contentBinding: 'ScHerestay.rentalUnitsController.content', | |
| exampleView: ScHerestay.UnitRow, |