[TIC-Web] fix the error page and disable filter 54/123554/1
authorChangHyun Lee <leechwin.lee@samsung.com>
Thu, 6 Apr 2017 05:41:02 +0000 (14:41 +0900)
committerChangHyun Lee <leechwin.lee@samsung.com>
Thu, 6 Apr 2017 05:41:02 +0000 (14:41 +0900)
- fix the error page in nginx
- disable filter in packages page

Change-Id: I8a1f79425c23cd0f1f45bb881208dcdcf444651c
Signed-off-by: ChangHyun Lee <leechwin.lee@samsung.com>
post_script/www/404.html
post_script/www/406.html
post_script/www/502.html
public/src/js/page/package.js

index 78216e8..fbf75b1 100644 (file)
@@ -1,4 +1,4 @@
-<!CTYPE html>
+<!DOCTYPE html>
 <html lang="en">
 <head>
     <!-- Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages -->
index d5938ed..75bd690 100644 (file)
@@ -1,4 +1,4 @@
-<!CTYPE html>
+<!DOCTYPE html>
 <html lang="en">
 <head>
     <!-- Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages -->
@@ -14,8 +14,8 @@
 
 <body>
     <div class="cover">
-        <h1>Browser Not Supported <small>Error 406</small></h1>
-        <p class="lead">The TIC web-service currently supports chrome web browser only.</p>
+        <h1>Your browser is not supported <small>Error 406</small></h1>
+        <p class="lead">The TIC web-service currently supports <strong>Chrome</strong> web browser only.</p>
         <!--<p class="lead">A minimum Edge, Firefox 9 or Chrome is required.</p>-->
     </div>
 </body>
index 51cd491..1c15f79 100644 (file)
@@ -1,4 +1,4 @@
-<!CTYPE html>
+<!DOCTYPE html>
 <html lang="en">
 <head>
     <!-- Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages -->
index 80b2f77..a49beb2 100644 (file)
@@ -1075,6 +1075,7 @@ define([
 
             $tree.treeview({
                 data: rawData.view,
+                levels: 1,
                 showIcon: false,
                 showCheckbox: true,
                 onRendered: _onRendered,
@@ -1182,9 +1183,10 @@ define([
             }
             _filter([$('#tic-package-toolbar-input').val()]);
         }
-        $("#tic-package-toolbar-debug").on('click', _filterType);
-        $("#tic-package-toolbar-devel").on('click', _filterType);
-        $("#tic-package-toolbar-source").on('click', _filterType);
+        // FIXME: bug for tree is not folding
+        // $("#tic-package-toolbar-debug").on('click', _filterType);
+        // $("#tic-package-toolbar-devel").on('click', _filterType);
+        // $("#tic-package-toolbar-source").on('click', _filterType);
 
         function _collapseAll() {
             $tree.treeview('collapseAll');