[Groonga-commit] groonga/gcs [ember] Move search views on search route

Zurück zum Archiv-Index

Yoji SHIDARA null+****@clear*****
Thu Sep 6 13:29:09 JST 2012


Yoji SHIDARA	2012-09-06 13:29:09 +0900 (Thu, 06 Sep 2012)

  New Revision: 1f946ab4b9ea0e27ff12c9540ec1775fcf67c2a8
  https://github.com/groonga/gcs/commit/1f946ab4b9ea0e27ff12c9540ec1775fcf67c2a8

  Log:
    Move search views on search route

  Modified files:
    public/js/gcs.js

  Modified: public/js/gcs.js (+8 -0)
===================================================================
--- public/js/gcs.js    2012-09-05 17:24:59 +0900 (192fec1)
+++ public/js/gcs.js    2012-09-06 13:29:09 +0900 (1a68f12)
@@ -11,10 +11,18 @@ $(document).ready(function($) {
     templateName: 'index'
   });
 
+  App.SearchView = Ember.View.extend({
+    templateName: 'search'
+  });
+
   App.Router = Ember.Router.extend({
     root: Ember.Route.extend({
       index: Ember.Route.extend({
         route: '/',
+        redirectsTo: 'search'
+      }),
+      search: Ember.Route.extend({
+        route: 'search',
         connectOutlets: function(router) {
           router.get('applicationController').connectOutlet('index');
         }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index