summaryrefslogtreecommitdiff
path: root/viewfeed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-16 18:55:39 +0300
committerAndrew Dolgov <[email protected]>2010-11-16 18:55:39 +0300
commit0b461ed5f05cbd91ac14209316090c7ac4772ae5 (patch)
treeb4f724e78ae49935365702baab7166594d27c1a4 /viewfeed.js
parent41c67dd2aca41cc3e82dd619da76444f8964d5fd (diff)
closeArticlePanel: fix
Diffstat (limited to 'viewfeed.js')
-rw-r--r--viewfeed.js19
1 files changed, 16 insertions, 3 deletions
diff --git a/viewfeed.js b/viewfeed.js
index 0eb7ff23b..5a8e929ab 100644
--- a/viewfeed.js
+++ b/viewfeed.js
@@ -2243,13 +2243,26 @@ function headlineActionsChange(elem) {
}
}
-function closeArticlePanel(id) {
+function closeArticlePanel() {
- if (id)
+ 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 (id)
if (dijit.byId("ATAB-" + id))
return dijit.byId("content-tabs").removeChild(dijit.byId("ATAB-" + id));
if (dijit.byId("content-insert"))
dijit.byId("headlines-wrap-inner").removeChild(
- dijit.byId("content-insert"));
+ dijit.byId("content-insert")); */
}