Project

General

Profile

« Previous | Next » 

Revision 2890

Added by sgarg almost 19 years ago

PMARK: decreased overall width
PMARK: fixed docid bug; needed to use review doc instead of orig doc
PMARK: minor formatting fix

View differences:

lib/style/common/reviews.css
1
ul {
2
}
3

  
4
li {
5
}
6

  
7 1
h3.review_emphasis {
8 2
	margin-bottom: 0px;
9 3
	font-size: 12pt;
......
11 5

  
12 6

  
13 7
.comment_form ul {
14
	width: 250px;
15 8
    font: 12pt "arial,sans-serif";
16 9
    margin-bottom: 4px;
17 10
    margin-left: 5px;
18 11
    padding: 0px;
19
    width: 200px;
12
    width: 180px;
20 13
}
21 14

  
22 15
.comment_form li {
......
32 25

  
33 26
.comment_form li input {
34 27
	font-size: 60%;
35
	margin: 0 0px 0 5px;
28
	margin: 0;
36 29
}
37 30

  
31
.comment_form li textarea {
32
	width: 170px;
33
}
34

  
38 35
/* this controls the review scroll bars */
39 36
div#review_list_container {
40
	width: 270px;
41
	height: 350px;
37
	width: 180px;
38
	height: 300px;
42 39
	overflow: auto;
43 40
}
44 41

  
45 42

  
46 43
div#review_list {
47
	width: 235px;
44
	width: 150px;
48 45
	margin-left: 5px;
49 46
	margin-top:6px;
50 47
	border: 1px solid #ddd;
51 48
}
52 49

  
53 50

  
54
span.review_blurb {
55
	padding-left: 8px;
56
	font-size: 9pt;
57
	font-family: courier;
58
}
59

  
60 51
p.review_tstamp {
61
	display: block;
52
	font-size: 10px;
62 53
	color: #999;
63 54
	margin: 0;
64 55
	padding: 0;
65 56
}
66 57

  
67 58
p.review_action {
68
	display: block;
59
	font-size: 13px;
69 60
	color: #999;
70 61
	margin: 0;
71 62
	padding: 0;
63
	font-variant:small-caps;
72 64
}
73 65

  
74 66
p.review_text {
75
	display: block;
67
	width: 140px;
68
	height: 105px;
76 69
	color: #111;
77
	height: 105px;
78
	width: 220px;
79 70
	overflow: auto;
80 71
	margin: 2px 0 0 0;
81 72
}
82 73

  
74
span.review_blurb {
75
	padding-left: 8px;
76
	font-size: 10px;
77
	font-family: courier;
78
}
79

  
83 80
div.tabtitle {
84
	font-size: 12pt;
81
	font-size: 11px;
85 82
	font-family: courier;
86 83
	padding: 2px 6px 2px 6px;
87 84
	border: 1px solid #eee;
......
102 99
	font-size: 12px;
103 100
	border: 0px solid #999;
104 101
	border-bottom: 1px;
105
	padding: 0px 8px 0px 8px;
102
	padding: 0px 4px 0px 4px;
106 103
}
107 104

  
108 105

  
lib/style/common/accordion.js
144 144
      this._attachBehaviors();
145 145
      if(!container) return;
146 146

  
147
      this.container.style.borderBottom = '1px solid ' + this.options.borderColor;
147
	  //PMA
148
      ///////this.container.style.borderBottom = '1px solid ' + this.options.borderColor;
148 149
      // validate onloadShowTab
149 150
       if (this.options.onLoadShowTab >= this.accordionTabs.length)
150 151
        this.options.onLoadShowTab = 0;
lib/style/common/review_behaviors.js
1 1

  
2
function get_reviews() {
3
	new Ajax.Request("@servlet-path@?action=read&docid=[%reviewdocid%]",
4
		{asynchronous:true, evalScripts:true, method:'post',
5
		onLoading:function(request){Element.show('busy')},
6
		onComplete: render_reviews});
2
function get_reviews(docid) {
3
	if (docid != null && docid != '') {
4
		new Ajax.Request("@servlet-path@?action=read&docid=" + docid,
5
			{asynchronous:true, evalScripts:true, method:'post',
6
			onLoading:function(request){Element.show('busy')},
7
			onComplete: render_reviews});
8
	}
7 9
}
8 10

  
9 11
function render_reviews(request) {
......
24 26
		var text = document.createTextNode(text_string);
25 27

  
26 28
		// 22 title chars or 34 blurb chars can fit in one title bar
27
		var title_max_length = 21;
28
		var blurb_max_length = 28;
29
		var title_max_length = 18;
30
		var blurb_max_length = 22;
29 31
		var title_length = packageId_string.length;
30 32

  
31 33
		var blurb_string = "";
......
98 100
	Element.hide("panel" + (which_tab+1) + "Blurb");
99 101
	var accordion = new Rico.Accordion('review_list',
100 102
		{
101
			borderColor:"#fff",
103
			borderColor:"#ddd",
102 104
			expandedBg:"#DEF1F1",
103 105
			expandedTextColor:"#000",
104 106
			collapsedBg:"#A3DADA",
lib/style/common/templates/getReviews.tmpl
11 11

  
12 12
</head>
13 13

  
14
[% IF reviewdocid != ''%]
15
	<body onload="get_reviews()">
16
[% ELSE %]
17
	<body>
18
[% END %]
14
<body onload="get_reviews('[%reviewdocid%]')">
19 15

  
20 16
[% IF isModerator == 'true' %]
21 17
	<div class="comment_form">
......
37 33
	</div>
38 34
[% END %]
39 35

  
40
[% IF reviewdocid != ''%]
41
        Reviews <img id="busy" src="@systemidserver@@html-path@/style/images/spinner.gif" style="display:none"/>
36
[% IF reviewdocid != '' %]
37
	<h3 style="margin-top:-8px" class="review_emphasis">
38
	Reviews 
39
	<img id="busy" src="@systemidserver@@html-path@/style/images/spinner.gif" style="display:none; margin-bottom: -3px;"/>
40
	</h3>
42 41

  
43
        <h3 style="margin-top:-8px" class="review_emphasis">Reviews <img id="busy" src="spinner.gif" style="display:none; margin-bottom: -3px;"/></h3>
44
        <!-- ajax will populate this node -->
45
        <div id="review_list_container"><div id="review_list"></div></div>
42
	<!-- ajax will populate this node -->
43
	<div id="review_list_container"><div id="review_list"></div></div>
46 44

  
47

  
48 45
[% ELSE %]
49
        No reviews found.
46
	No reviews found.
50 47
[% END %]
51
 
48

  
52 49
</body>
53 50
</html>
54 51

  

Also available in: Unified diff