Created
May 26, 2011 19:47
-
-
Save tritchey/993910 to your computer and use it in GitHub Desktop.
dns controllers
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
enterState: function() { | |
... | |
var _dnsConfigs = ScaleModel.store.find(ScaleModel.DNSConfig); | |
ScaleUI.dnsConfigsController.set('content', _dnsConfigs); | |
} |
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
ScaleUI.dnsConfigsController = SC.ArrayController.create({ | |
}) ; | |
ScaleUI.dnsConfigController = SC.ObjectController.create({ | |
contentBinding: 'ScaleUI.dnsConfigsController.firstObject', | |
dnsServersController: SC.ArrayController.create({ | |
contentBinding: 'ScaleUI.dnsConfigController*content.dnsServers' | |
}), | |
searchDomainsController: SC.ArrayController.create({ | |
contentBinding: 'ScaleUI.dnsConfigController*content.searchDomains' | |
}), | |
}) ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment