]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove tt-rss tabcontrol
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 6 Feb 2013 07:09:45 +0000 (11:09 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 6 Feb 2013 07:09:45 +0000 (11:09 +0400)
include/functions.php
index.php
js/feedlist.js
js/viewfeed.js
tt-rss.css

index c32d31f6d84367b4c1dc587a711fd2c30a77b574..b2d93acde5b4826ae8dd0bcde3d1b5de06d199da 100644 (file)
 
                        $rv['content'] .= "<div class=\"postReply\" id=\"POST-$id\">";
 
-                       $rv['content'] .= "<div onclick=\"return postClicked(event, $id)\"
+                       $rv['content'] .= "<div onclick=\"return hlClicked(event, $id)\"
                                class=\"postHeader\" id=\"POSTHDR-$id\">";
 
                        $entry_author = $line["author"];
index 0d0646c79b7e42a029f95dff096a53ecc1a620cd..6ddf5de6e59975d430e170b74459b681267d58c8 100644 (file)
--- a/index.php
+++ b/index.php
 </div>
 
 <div dojoType="dijit.layout.BorderContainer" region="center" id="header-wrap" gutters="false">
-<div dojoType="dijit.layout.TabContainer" region="center" id="content-tabs">
-<div dojoType="dijit.layout.BorderContainer" region="center" id="content-wrap"
-       title="<?php echo __("News") ?>">
+<div dojoType="dijit.layout.BorderContainer" region="center" id="content-wrap">
 
 <div id="toolbar" dojoType="dijit.layout.ContentPane" region="top">
        <div id="main-toolbar" dojoType="dijit.Toolbar">
 </div>
 </div>
 </div>
-</div>
 
 <?php db_close($link); ?>
 
index f4196a7265780ab2519e0b97d546fc58bd018632..72bc436cb6e701163839726fa44de6bbd582ede2 100644 (file)
@@ -107,10 +107,6 @@ function viewfeed(feed, method, is_cat, offset, background, infscroll_req) {
                        } */
                }
 
-               if (offset == 0 && !background)
-                       dijit.byId("content-tabs").selectChild(
-                               dijit.byId("content-tabs").getChildren()[0]);
-
                if (!background) {
                        _viewfeed_last = get_timestamp();
 
index 3ffa134e7edeff6b51c852d2c28faba5093c2b18..a950ec7a4b7d03d613f272fe1d5bd6d5ef9df1a5 100644 (file)
@@ -1372,10 +1372,6 @@ function zoomToArticle(event, id) {
        try {
                var cached_article = cache_get("article: " + id);
 
-               if (dijit.byId("ATAB-" + id))
-                       if (!event || !event.shiftKey)
-                               return dijit.byId("content-tabs").selectChild(dijit.byId("ATAB-" + id));
-
                if (dijit.byId("ATSTRTIP-" + id))
                        dijit.byId("ATSTRTIP-" + id).destroyRecursive();
 
@@ -1388,11 +1384,6 @@ function zoomToArticle(event, id) {
                                id: 'ATAB-' + id,
                                closable: true });
 
-                       dijit.byId("content-tabs").addChild(article_pane);
-
-                       if (!event || !event.shiftKey)
-                               dijit.byId("content-tabs").selectChild(article_pane);
-
                        if ($("PTITLE-" + id))
                                article_pane.attr('title', $("PTITLE-" + id).innerHTML);
 
@@ -1420,11 +1411,6 @@ function zoomToArticle(event, id) {
                                                        id: 'ATAB-' + id,
                                                        closable: true });
 
-                                               dijit.byId("content-tabs").addChild(article_pane);
-
-                                               if (!event || !event.shiftKey)
-                                                       dijit.byId("content-tabs").selectChild(article_pane);
-
                                                if ($("PTITLE-" + id))
                                                        article_pane.attr('title', $("PTITLE-" + id).innerHTML);
                                        }
@@ -1612,7 +1598,8 @@ function cdmClicked(event, id) {
                        }
 
                        toggleUnread(id, 0, false);
-                       zoomToArticle(event, id);
+
+                       openArticleInNewWindow(id);
                }
 
                request_counters();
@@ -1624,45 +1611,18 @@ function cdmClicked(event, id) {
        return false;
 }
 
-function postClicked(event, id) {
-       try {
-
-               if (!event.ctrlKey) {
-                       return true;
-               } else {
-                       postOpenInNewTab(event, id);
-                       return false;
-               }
-
-       } catch (e) {
-               exception_error("postClicked");
-       }
-}
-
-function hlOpenInNewTab(event, id) {
-       toggleUnread(id, 0, false);
-       zoomToArticle(event, id);
-}
-
-function postOpenInNewTab(event, id) {
-       closeArticlePanel(id);
-       zoomToArticle(event, id);
-}
-
 function hlClicked(event, id) {
        try {
                if (event.which == 2) {
                        view(id);
                        return true;
-               } else if (event.altKey) {
+               } else if (event.ctrlKey) {
+                       toggleSelected(id, true);
+                       toggleUnread(id, 0, false);
                        openArticleInNewWindow(id);
-               } else if (!event.ctrlKey) {
-                       view(id);
                        return false;
                } else {
-                       toggleSelected(id);
-                       toggleUnread(id, 0, false);
-                       zoomToArticle(event, id);
+                       view(id);
                        return false;
                }
 
@@ -1775,17 +1735,9 @@ function headlineActionsChange(elem) {
 
 function closeArticlePanel() {
 
-       var tabs = dijit.byId("content-tabs");
-       var child = tabs.selectedChildWidget;
-
-       if (child && tabs.getIndexOfChild(child) > 0) {
-               tabs.removeChild(child);
-               child.destroy();
-       } else {
-               if (dijit.byId("content-insert"))
-                       dijit.byId("headlines-wrap-inner").removeChild(
-                               dijit.byId("content-insert"));
-       }
+       if (dijit.byId("content-insert"))
+               dijit.byId("headlines-wrap-inner").removeChild(
+                       dijit.byId("content-insert"));
 }
 
 function initHeadlinesMenu() {
@@ -1836,12 +1788,6 @@ function initHeadlinesMenu() {
                                openArticleInNewWindow(this.getParent().callerRowId);
                        }}));
 
-               menu.addChild(new dijit.MenuItem({
-                       label: __("View in a tt-rss tab"),
-                       onClick: function(event) {
-                               hlOpenInNewTab(event, this.getParent().callerRowId);
-                               }}));
-
                menu.addChild(new dijit.MenuSeparator());
 
                menu.addChild(new dijit.MenuItem({
index 5f4f69f9f8b277a69b313345873a2681d4d1fd59..b636140d2596516c395aee9610a579ad3bf8ddbb 100644 (file)
@@ -1079,8 +1079,10 @@ div.fatalError textarea {
 
 #content-wrap {
        padding : 0px;
-       border-width : 0px;
-       margin : 0px;
+       border-width : 1px 0px 1px 1px;
+       border-style : solid;
+       border-color : #c0c0c0;
+       margin : 25px 0px 0px 0px;
 }
 
 #feeds-holder {
@@ -1111,12 +1113,6 @@ div.fatalError textarea {
        display : none;
 }
 
-#content-tabs {
-       margin : 0px;
-       padding : 0px;
-       border-width : 0px;
-}
-
 #toolbar {
        padding : 0px;
        margin : 0px;