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
c4c72526
Commit
c4c72526
authored
Oct 19, 2015
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1210078: Going back from the "Match failed" page deletes the values of user fields
r=gerv
parent
8fff7304
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
field.js
js/field.js
+2
-0
global.js
js/global.js
+12
-0
No files found.
js/field.js
View file @
c4c72526
...
@@ -794,6 +794,7 @@ $(function() {
...
@@ -794,6 +794,7 @@ $(function() {
else
{
else
{
that
.
devbridgeAutocomplete
(
options_user
);
that
.
devbridgeAutocomplete
(
options_user
);
}
}
that
.
addClass
(
'bz_autocomplete'
);
});
});
// init autocomplete fields with array of values
// init autocomplete fields with array of values
...
@@ -809,6 +810,7 @@ $(function() {
...
@@ -809,6 +810,7 @@ $(function() {
this
.
focus
();
this
.
focus
();
}
}
});
});
that
.
addClass
(
'bz_autocomplete'
);
});
});
});
});
...
...
js/global.js
View file @
c4c72526
...
@@ -51,3 +51,15 @@ function display_value(field, value) {
...
@@ -51,3 +51,15 @@ function display_value(field, value) {
if
(
translated
)
return
translated
;
if
(
translated
)
return
translated
;
return
value
;
return
value
;
}
}
// jQuery auto-completion disables browser native autocompletion, however this
// excludes it from being restored by bfcache. Trick the browser into restoring
// it by changing the autocomplete attribute when a page is hidden and shown.
$
().
ready
(
function
()
{
$
(
window
).
on
(
'pagehide'
,
function
()
{
$
(
'.bz_autocomplete'
).
attr
(
'autocomplete'
,
'on'
);
});
$
(
window
).
on
(
'pageshow'
,
function
()
{
$
(
'.bz_autocomplete'
).
attr
(
'autocomplete'
,
'off'
);
});
});
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