Yoji SHIDARA
null+****@clear*****
Thu Sep 20 14:03:56 JST 2012
Yoji SHIDARA 2012-09-20 14:03:56 +0900 (Thu, 20 Sep 2012) New Revision: 79eb3e4ce59b084bbeaaa1852a755447978426f4 https://github.com/groonga/gcs/commit/79eb3e4ce59b084bbeaaa1852a755447978426f4 Log: Rename DomainController to domainController Because it is an instance Modified files: public/js/gcs.js views/index.jade Modified: public/js/gcs.js (+2 -2) =================================================================== --- public/js/gcs.js 2012-09-19 16:10:21 +0900 (8405d24) +++ public/js/gcs.js 2012-09-20 14:03:56 +0900 (7d0396b) @@ -12,7 +12,7 @@ App.IndexView = Ember.View.extend({ App.currentDomain = Ember.Object.create(); -App.DomainsController = Ember.ArrayController.create(); +App.domainsController = Ember.ArrayController.create(); App.DomainSelectorView = Ember.View.extend({ classNames: ["navbar-form", "pull-right"], contentBinding: "App.DomainsController.content" @@ -218,7 +218,7 @@ $(document).ready(function($) { if (domains.length == domainStatusMembers.size()) { // Now all DescribeIndexFields requests are done clearInterval(timer); - App.DomainsController.set('content', domains); + App.domainsController.set('content', domains); if (domains.length > 0) { // set default domain App.set('currentDomain', domains[0]); Modified: views/index.jade (+1 -1) =================================================================== --- views/index.jade 2012-09-19 16:10:21 +0900 (be43e86) +++ views/index.jade 2012-09-20 14:03:56 +0900 (f006fb6) @@ -17,7 +17,7 @@ html .container a.brand(href="/") Groonga CloudSearch {{#view App.DomainSelectorView}} - {{view Ember.Select contentBinding="App.DomainsController.content" optionLabelPath="content.name" selectionBinding="App.currentDomain"}} + {{view Ember.Select contentBinding="App.domainsController.content" optionLabelPath="content.name" selectionBinding="App.currentDomain"}} {{/view}} p.navbar-text.pull-right Domain: .container -------------- next part -------------- HTML����������������������������... Descargar