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
| $ rvm install 1.8.7 --debug | tee | pbcopy | |
| [0;32m<i>[0m Installing Ruby from source to: /Users/tanner/.rvm/ruby-1.8.7-p174 [0;32m</i> [0m | |
| [0;32m<i>[0m Downloading ruby-1.8.7-p174, this may take a while depending on your connection... [0;32m</i> [0m | |
| [0;35m<d>[0m Fetching ruby-1.8.7-p174.tar.gz [0;35m</d> [0m | |
| [0;35m<d>[0m No archive or no MD5, downloading [0;35m</d> [0m | |
| [0;32m<i>[0m Extracting ruby-1.8.7-p174 ... [0;32m</i> [0m | |
| [0;35m<d>[0m Executing: tar xzf /Users/tanner/.rvm/archives/ruby-1.8.7-p174.tar.gz -C /Users/tanner/.rvm/src [0;35m</d> [0m | |
| [0;32m<i>[0m Configuring ruby-1.8.7-p174 using --enable-shared --disable-pthread , this may take a while depending on your cpu(s)... [0;32m</i> [0m | |
| [0;35m<d>[0m Executing: ./configure --prefix=/Users/tanner/.rvm/ruby-1.8.7-p174 --enable-shared --disable-pthread [0;35m</d> [0m | |
| [0;32m<i>[0m Compiling ruby-1.8.7-p174, this may take a while, depending on your cpu(s)... [0;32m</i> [0m |
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
| fetchRecords: function(store, fetchKey, params) { | |
| var ret = [], idx, len, id, recordType, rec, url, request, datasource ; | |
| datasource = this ; | |
| len = params.length ; | |
| for(idx = 0; idx < len; idx++) { | |
| storeKey = params[idx] ; // storeKey | |
| id = store.idFor(storeKey) ; // record id | |
| recordType = store.recordTypeFor(storeKey) ; |
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
| Sample.TireView = SC.View.design({ | |
| childViews: ['mangpartLabel','mangpartField','partLabel','partField','partwhsLabel','partwhsField','makeLabel','makeField','modelLabel','modelField','tdateLabel','tdateField','serialnoLabel','serialnoField','metertypeLabel','metertypeField','lifemLabel','lifemField','metertype2Label','metertype2Field','lifem2Label','lifem2Field','treadLabel','treadField','addcostLabel','addcostField','priceLabel','priceField','tiresizeLabel','tiresizeField','overdiamLabel','overdiamField','availLabel','availField','capperLabel','capperField','inactLabel','inactField','loadsingLabel','loadsingField','speedLabel','speedField','loaddualLabel','loaddualField','mindualspLabel','mindualspField','bufradiusLabel','bufradiusField','basewidthLabel','basewidthField','steerLabel','steerField','driveLabel','driveField','trailerLabel','trailerField','recappedLabel','recappedField'], | |
| mangpartLabel: SC.LabelView.design({ layout: { left:0, top:0, width:200, height:20 }, value: 'Use Managed Part' }), | |
| mang |
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
| Sample.mainPage = SC.Page.design({ | |
| mainPane: SC.MainPane.design({ | |
| childViews: 'scrollView'.w(), | |
| scrollView: SC.ScrollView.design({ | |
| layout: { centerX:0, centerY:0, width:800, height:400 }, | |
| autohidesHorizontalScroller: NO, | |
| autohidesVerticalScroller: NO, | |
| contentView: SC.View.design({ |
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
| CDWeb.requestController = SC.DataSource.create( | |
| /** @scope CDWeb.requestController */ { | |
| retrieveRecords: function(store, storeKeys) { | |
| var storeKey = storeKeys[0] ; // only the first | |
| var id = store.idFor(storeKey) ; | |
| var rec = store.find(CDWeb.Data, id) ; | |
| $.ajax({ | |
| type: 'GET', |
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
| // ========================================================================== | |
| // CDWeb.ObjectSelectorController | |
| // ========================================================================== | |
| require('core'); | |
| /** @class | |
| (Document Your View Here) |
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
| CDWeb.ObjectSelectorFieldView = SC.View.extend( | |
| /** @scope CDWeb.ObjectSelectorFieldView.prototype */{ | |
| requestUrlBinding: 'CDWeb.objectSelectorController.requestUrl', | |
| requestParamsBinding: 'CDWeb.objectSelectorController.requestParams', | |
| render: function(context, firstTime) { | |
| if (firstTime) { | |
| context.push('<input type="text" style="width:100%" />') ; | |
| } |
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
| // ========================================================================== | |
| // CDWeb.BreadcrumbsController | |
| // ========================================================================== | |
| require('core'); | |
| /** @class | |
| (Document Your View Here) | |
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
| CDWeb.BreadcrumbsView = SC.View.extend({ | |
| crumbs: [], | |
| crumbsBinding: "CDWeb.breadcrumbsController.arrangedObjects", | |
| tagName: 'ul', | |
| layout: { left:0, right:0, top: 0, bottom:0 }, | |
| crumbsDidChangeObserver: function() { | |
| console.log('crumbsDidChange', t = 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
| // ========================================================================== | |
| // OrionFw.ManyToManyController | |
| // ========================================================================== | |
| require('core'); | |
| OrionFw.ManyToManyController = SC.Controller.extend({ | |
| init: function() { | |
| sc_super(); |