[Groonga-commit] groonga/groonga-admin at c2c727e [master] Support integer drilldown key

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Nov 26 16:00:54 JST 2014


Kouhei Sutou	2014-11-26 16:00:54 +0900 (Wed, 26 Nov 2014)

  New Revision: c2c727e42b0b0a89a331657aed596155501d83c9
  https://github.com/groonga/groonga-admin/commit/c2c727e42b0b0a89a331657aed596155501d83c9

  Message:
    Support integer drilldown key

  Modified files:
    app/scripts/controllers/table-search-controller.js

  Modified: app/scripts/controllers/table-search-controller.js (+6 -1)
===================================================================
--- app/scripts/controllers/table-search-controller.js    2014-11-26 15:54:58 +0900 (95f0e64)
+++ app/scripts/controllers/table-search-controller.js    2014-11-26 16:00:54 +0900 (30ed47c)
@@ -235,7 +235,12 @@ angular.module('groongaAdminApp')
           }
         }
 
-        var escapedValue = '"' + value.replace('"', '\\"') + '"';
+        var escapedValue;
+        if (typeof value === 'string') {
+          escapedValue = '"' + value.replace('"', '\\"') + '"';
+        } else {
+          escapedValue = value.toString();
+        }
 
         var query = $scope.parameters.query || '';
         if (query.length > 0) {
-------------- next part --------------
HTML����������������������������...
下載 



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