Closed Bug 313256 Opened 19 years ago Closed 18 years ago

Update CSS for attachment comment in real time to private comments

Categories

(Bugzilla :: User Interface, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: batosti, Assigned: batosti)

Details

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050725 Firefox/1.0.6 (Ubuntu package 1.0.6)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050725 Firefox/1.0.6 (Ubuntu package 1.0.6)

The bz_private style is used to display private comments.  If the status is
changed for the attachment the style of comment textbox will be changed in real
time.

Reproducible: Always
Assignee: myk → batosti
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → Bugzilla 2.22
Attached patch batosti_v1 (obsolete) — Splinter Review
Attachment #200635 - Flags: review?(bugreport)
Status: NEW → ASSIGNED
Summary: update css for attachment comment in real time to private comments → Update CSS for attachment comment in real time to private comments
Comment on attachment 200635 [details] [diff] [review]
batosti_v1

-        <textarea wrap="soft" id="commment" name="comment" rows="6" cols="80"></textarea>
+        <textarea wrap="soft" id="comment" name="comment" rows="6" cols="80"></textarea>

This was moved in bug 329323, and it's only for 2.20 and 2.22 (trunk has it fixed).

In addition, including this here makes your patch bitrotten on trunk (applying it fails). Also, this specific change should be commited in 2.20 as well (the target of this bug is 2.20).

So please make a patch that reflects only the bug summary.

Also, what's up with this
-    document.refresh();
thing?
Attachment #200635 - Flags: review?(bugreport) → review-
I meant 'the target of this bug is NOT 2.20' in my previous comment.
Attached patch batosti_v1_fixSplinter Review
Attachment #200635 - Attachment is obsolete: true
Attachment #214177 - Flags: review?(vladd)
Target Milestone: Bugzilla 2.22 → Bugzilla 2.24
Comment on attachment 214177 [details] [diff] [review]
batosti_v1_fix

This works if we're going to support only DOM level 1 compliant browsers.

Upon checkin, document.getElementById *could* be replaced with a larger function, in order to add support for a wide range of browsers. This is completely optional.

One possible version could be:

function returnObjById( id )
{
    if (document.getElementById)
        var returnVar = document.getElementById(id);
    else if (document.all)
        var returnVar = document.all[id];
    else if (document.layers)
        var returnVar = document.layers[id];
    return returnVar;
}

Google.com used to use:

function el(id) {
	if (document.getElementById) {
		return document.getElementById(id);
	} else if (window[id]) {
		return window[id];
	}

	return null;
}

The one who sets the approval? flag could specify its preference for one of those 3 versions.
Attachment #214177 - Flags: review?(vladd) → review+
Flags: approval?
Flags: approval? → approval+
Checking in template/en/default/attachment/create.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/attachment/create.html.tmpl,v  <--  create.html.tmpl
new revision: 1.26; previous revision: 1.25
done
Severity: normal → enhancement
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: