summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-11-11 18:15:56 +0100
committerYorhel <git@yorhel.nl>2010-11-11 18:15:56 +0100
commit16fe685a3f89faa61716e5b23d0a9b2fdd30fe1f (patch)
treede7e0c395de56278a9b6bb1ff5b01a292381f56f /data
parent2a7236184180f24169d454396b482d923beb21b5 (diff)
Producer release listing: added dev/pub info and expand/collapse link
It's an awesome feature now. :-)
Diffstat (limited to 'data')
-rw-r--r--data/script.js23
-rw-r--r--data/style.css36
2 files changed, 34 insertions, 25 deletions
diff --git a/data/script.js b/data/script.js
index e8367fce..cdbac941 100644
--- a/data/script.js
+++ b/data/script.js
@@ -1950,6 +1950,29 @@ if(byId('expandall')) {
heads[i].onclick = singletoggle;
}
+// expand/collapse release listing (/p+)
+if(byId('expandprodrel')) {
+ var lnk = byId('expandprodrel');
+ setexpand = function() {
+ var exp = !(getCookie('prodrelexpand') == 1);
+ setText(lnk, exp ? mt('_js_collapse') : mt('_js_expand'));
+ var l = byClass(byId('prodrel'), 'tr', 'rel');
+ for(var i=0; i<l.length; i++)
+ setClass(l[i], 'hidden', !exp);
+ var l = byClass(byId('prodrel'), 'tr', exp ? 'vn_lst' : 'vn');
+ for(var i=0; i<l.length; i++) {
+ setClass(l[i], 'vn', exp);
+ setClass(l[i], 'vn_lst', !exp);
+ }
+ };
+ setexpand();
+ lnk.onclick = function () {
+ setCookie('prodrelexpand', getCookie('prodrelexpand') == 1 ? 0 : 1);
+ setexpand();
+ return false;
+ };
+}
+
// auto-complete tag search (/v/*)
if(byId('advselect') && byId('ti')) {
var trfunc = function(item, tr) {
diff --git a/data/style.css b/data/style.css
index 075ce00c..f7b0ab72 100644
--- a/data/style.css
+++ b/data/style.css
@@ -826,31 +826,17 @@ div.scr_uploader { visibility: hidden; overflow: hidden; width: 1px; height: 1px
/***** Producer page/list *******/
-.prodrel table {
- width: 100%;
-}
-.prodrel tr.vn td {
- background: url($_boxbg$) repeat;
- font-weight: bold;
-}
-.prodrel td.tc1 {
- padding-left: 30px;
- width: 80px;
-}
-.prodrel td.tc2 {
- text-align: center;
- width: 50px;
-}
-.prodrel td.tc3 {
- text-align: right;
- padding: 0;
- width: 120px;
-}
-.prodrel td.tc5 {
- text-align: right;
- width: 25px;
- padding: 0;
-}
+#prodrel { width: 100%; }
+#prodrel tr.vn td { background: url($_boxbg$) repeat; font-weight: bold; }
+#prodrel tr.vn i { display: none }
+#prodrel tr.vn_lst td { padding: 1px }
+#prodrel tr.vn_lst i { font-style: normal; display: block; float: left; width: 80px; padding: 0 0 0 40px; }
+#prodrel td.tc1 { width: 80px; padding-left: 30px; }
+#prodrel td.tc2 { width: 50px; text-align: center; }
+#prodrel td.tc3 { width: 120px; text-align: right; padding: 0; }
+#prodrel td.tc5 { width: 120px; color: $grayedout$; }
+#prodrel td.tc6 { width: 25px; text-align: right; padding: 0; }
+#expandprodrel { float: right; font-weight: bold; padding-bottom: 2px; border: none }
.producerbrowse ul {
float: left;