Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
4b113460
Commit
4b113460
authored
Aug 09, 2011
by
David Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 585440 - Allow disabled accounts to turn off all bugmail
r/a=mkanat
parent
80c6d150
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
1 deletion
+24
-1
field.js
js/field.js
+13
-0
edit.html.tmpl
template/en/default/admin/users/edit.html.tmpl
+1
-0
userdata.html.tmpl
template/en/default/admin/users/userdata.html.tmpl
+7
-1
textarea.html.tmpl
template/en/default/global/textarea.html.tmpl
+3
-0
No files found.
js/field.js
View file @
4b113460
...
...
@@ -897,3 +897,16 @@ YAHOO.bugzilla.keywordAutocomplete = {
});
}
};
/**
* Set the disable email checkbox to true if the user has disabled text
*/
function
userDisabledTextOnChange
(
disabledtext
)
{
var
disable_mail
=
document
.
getElementById
(
'disable_mail'
);
if
(
disabledtext
.
value
===
""
&&
!
disable_mail_manually_set
)
{
disable_mail
.
checked
=
false
;
}
if
(
disabledtext
.
value
!==
""
&&
!
disable_mail_manually_set
)
{
disable_mail
.
checked
=
true
;
}
}
template/en/default/admin/users/edit.html.tmpl
View file @
4b113460
...
...
@@ -31,6 +31,7 @@
message = message
style_urls = ['skins/standard/admin.css', 'skins/standard/editusers.css']
doc_section = "useradmin.html#modifyusers"
javascript_urls = [ 'js/field.js' ]
%]
[% PROCESS admin/users/listselectvars.html.tmpl
...
...
template/en/default/admin/users/userdata.html.tmpl
View file @
4b113460
...
...
@@ -20,6 +20,10 @@
# otheruser: Bugzilla::User object of user to edit
#%]
<script type="text/javascript">
var disable_mail_manually_set = [% (otheruser.email_disabled ? 1 : 0) FILTER js %];
</script>
<tr>
<th><label for="login">Login name:</label></th>
<td>
...
...
@@ -86,7 +90,8 @@
<th><label for="disable_mail">[% terms.Bug %]mail Disabled:</label></th>
<td>
<input type="checkbox" name="disable_mail" id="disable_mail" value="1"
[% IF otheruser.email_disabled %] checked="checked" [% END %] />
[% IF otheruser.email_disabled %] checked="checked" [% END %]
onchange="disable_mail_manually_set=1;">
(This affects [% terms.bug %]mail and whinemail, not password-reset or other
non-[% terms.bug %]-related emails)
</td>
...
...
@@ -102,6 +107,7 @@
defaultrows = 10
cols = 60
defaultcontent = otheruser.disabledtext
onchange = "userDisabledTextOnChange(this);"
%]<br>
(If non-empty, then the account will be disabled, and this text should
explain why.)
...
...
template/en/default/global/textarea.html.tmpl
View file @
4b113460
...
...
@@ -53,4 +53,7 @@
[% END %]
[% IF mandatory %]
aria-required="true"
[% END %]
[% IF onchange %]
onchange="[% onchange FILTER html %]"
[% END %]>[% defaultcontent FILTER html %]</textarea>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment