tajo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jihoon...@apache.org
Subject git commit: TAJO-955: Add database selection submit button in catalogview.jsp for text based browse. (Hyoungjun Kim via jihoon)
Date Sun, 20 Jul 2014 13:22:46 GMT
Repository: tajo
Updated Branches:
  refs/heads/master 40ae9c048 -> b1b16d5d6


TAJO-955: Add database selection submit button in catalogview.jsp for text based browse. (Hyoungjun
Kim via jihoon)


Project: http://git-wip-us.apache.org/repos/asf/tajo/repo
Commit: http://git-wip-us.apache.org/repos/asf/tajo/commit/b1b16d5d
Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/b1b16d5d
Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/b1b16d5d

Branch: refs/heads/master
Commit: b1b16d5d6add3e03e0f4161da3373452065482d7
Parents: 40ae9c0
Author: Jihoon Son <jihoonson@apache.org>
Authored: Sun Jul 20 22:22:16 2014 +0900
Committer: Jihoon Son <jihoonson@apache.org>
Committed: Sun Jul 20 22:22:16 2014 +0900

----------------------------------------------------------------------
 CHANGES                                          |  3 +++
 .../main/resources/webapps/admin/catalogview.jsp | 19 +++++++++++--------
 2 files changed, 14 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/b1b16d5d/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 781a9ef..27593fc 100644
--- a/CHANGES
+++ b/CHANGES
@@ -29,6 +29,9 @@ Release 0.9.0 - unreleased
 
   IMPROVEMENT
 
+    TAJO-955: Add database selection submit button in catalogview.jsp for text 
+    based browse. (Hyoungjun Kim via jihoon)
+
     TAJO-956: CONCAT should be support multiple params and null param.
     (Hyoungjun Kim via hyunsik)
 

http://git-wip-us.apache.org/repos/asf/tajo/blob/b1b16d5d/tajo-core/src/main/resources/webapps/admin/catalogview.jsp
----------------------------------------------------------------------
diff --git a/tajo-core/src/main/resources/webapps/admin/catalogview.jsp b/tajo-core/src/main/resources/webapps/admin/catalogview.jsp
index a70c55b..fe6dc73 100644
--- a/tajo-core/src/main/resources/webapps/admin/catalogview.jsp
+++ b/tajo-core/src/main/resources/webapps/admin/catalogview.jsp
@@ -84,17 +84,20 @@
       <td width="20%" valign="top">
         <div>
           <b>Database:</b>
-          <select width="190" style="width: 190px" onchange="document.location.href='catalogview.jsp?database='
+ this.value">
+          <form action='catalogview.jsp' method='GET'>
+            <select name="database" width="190" style="width: 190px" onchange="document.location.href='catalogview.jsp?database='
+ this.value">
             <%
-              for (String databaseName : catalog.getAllDatabaseNames()) {
-                if (selectedDatabase.equals(databaseName)) { %>
-                  <option value="<%=databaseName%>" selected><%=databaseName%>
-                <%} else {%>
+            for (String databaseName : catalog.getAllDatabaseNames()) {
+              if (selectedDatabase.equals(databaseName)) { %>
+                <option value="<%=databaseName%>" selected><%=databaseName%>
+            <%} else {%>
                 <option value="<%=databaseName%>"><%=databaseName%></option>
-                <%}
-              }
+            <%}
+            }
             %>
-          </select>
+            </select>
+            <input type="submit" value="Select"/>
+          </form>
         </div>
         <!-- table list -->
         <div style='margin-top:5px'>


Mime
View raw message