[Groonga-commit] groonga/gcs [ember] Remove old form and related codes

Back to archive index

Yoji SHIDARA null+****@clear*****
Wed Sep 19 16:10:21 JST 2012


Yoji SHIDARA	2012-09-19 16:10:21 +0900 (Wed, 19 Sep 2012)

  New Revision: 18a3f023db0e341dea5fc5389e86f3c4902cff71
  https://github.com/groonga/gcs/commit/18a3f023db0e341dea5fc5389e86f3c4902cff71

  Log:
    Remove old form and related codes

  Modified files:
    public/js/gcs.js
    views/index.jade

  Modified: public/js/gcs.js (+0 -8)
===================================================================
--- public/js/gcs.js    2012-09-19 16:06:58 +0900 (7486b17)
+++ public/js/gcs.js    2012-09-19 16:10:21 +0900 (8405d24)
@@ -32,7 +32,6 @@ App.SearchController = Ember.ObjectController.extend({
   paramsForRequest: function() {
     var domain = App.currentDomain;
     var query = this.get('content.query');
-
     var start = this.get('content.start');
     var params = {
       q:     query,
@@ -43,8 +42,6 @@ App.SearchController = Ember.ObjectController.extend({
     return params;
   }.property('content.query', 'content.perPage', 'content.start', 'App.currentDomain'),
   executeSearch: function(query) {
-    this.set('queryExcuted', query);
-
     var domain = App.currentDomain;
     var searchEndpoint = 'http://' + domain.endpoint + '/2011-02-01/search';
 
@@ -209,11 +206,6 @@ $(document).ready(function($) {
                   var field = $(this);
                   fieldNames.push(field.find('IndexFieldName').text());
                 });
-              var option = $("<option/>")
-                    .text(name)
-                    .attr('value', endpoint)
-                    .attr('data-field-names', fieldNames.join(','));
-              $('#domain-and-id').append(option);
               domains.push({
                 name: name,
                 endpoint: endpoint,

  Modified: views/index.jade (+0 -7)
===================================================================
--- views/index.jade    2012-09-19 16:06:58 +0900 (902e546)
+++ views/index.jade    2012-09-19 16:10:21 +0900 (be43e86)
@@ -16,8 +16,6 @@ html
         .navbar-inner
           .container
             a.brand(href="/") Groonga CloudSearch
-            form.navbar-form.pull-right#domain
-              select(id="domain-and-id", name="domain-and-id")
             {{#view App.DomainSelectorView}}
             {{view Ember.Select contentBinding="App.DomainsController.content" optionLabelPath="content.name" selectionBinding="App.currentDomain"}}
             {{/view}}
@@ -44,11 +42,6 @@ html
       p View raw:
         <a {{bindAttr href="urlForRawRequest"}}>{{urlForRawRequest}}</a>
 
-      form#search.form-search(onsubmit="searchExecute(); return false;")
-        input.search-query(type="text", name="query", value="")
-        input.btn(type="submit", value="Search")
-        input(type="hidden", name="start", value="")
-
       #request-information
       #results
   body
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-commit mailing list
Back to archive index