Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
adf83689
Commit
adf83689
authored
17 years ago
by
Gábor Hojtsy
Browse files
Options
Downloads
Patches
Plain Diff
#204756
by dvessel: textarea.js assumed #disabled fields are to be hidden
parent
1ac74188
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
misc/teaser.js
+9
-2
9 additions, 2 deletions
misc/teaser.js
misc/textarea.js
+0
-11
0 additions, 11 deletions
misc/textarea.js
modules/system/system.css
+4
-0
4 additions, 0 deletions
modules/system/system.css
with
13 additions
and
13 deletions
misc/teaser.js
+
9
−
2
View file @
adf83689
...
...
@@ -70,13 +70,20 @@ Drupal.behaviors.teaser = function(context) {
body
[
0
].
value
=
trim
(
text
[
1
]);
$
(
teaser
).
attr
(
'
disabled
'
,
''
);
$
(
'
input
'
,
button
).
val
(
Drupal
.
t
(
'
Join summary
'
)).
toggle
(
join_teaser
,
split_teaser
);
$
(
teaser
).
show
();
}
else
{
$
(
teaser
).
hide
();
$
(
'
input
'
,
button
).
val
(
Drupal
.
t
(
'
Split summary at cursor
'
)).
toggle
(
split_teaser
,
join_teaser
);
$
(
checkbox
).
hide
();
}
// Make sure that textarea.js has done its magic to ensure proper visibility state.
if
(
Drupal
.
behaviors
.
textarea
&&
teaser
.
is
((
'
.form-textarea:not(.textarea-processed)
'
)))
{
Drupal
.
behaviors
.
textarea
(
teaser
.
parentNode
);
}
// Set initial visibility
if
(
$
(
teaser
).
is
(
'
[@disabled]
'
))
{
$
(
teaser
).
parent
().
hide
();
}
});
};
This diff is collapsed.
Click to expand it.
misc/textarea.js
+
0
−
11
View file @
adf83689
...
...
@@ -4,22 +4,11 @@ Drupal.behaviors.textarea = function(context) {
$
(
'
textarea.resizable:not(.textarea-processed)
'
,
context
).
each
(
function
()
{
var
textarea
=
$
(
this
).
addClass
(
'
textarea-processed
'
),
staticOffset
=
null
;
// Make sure that teaser.js has done its magic before converting this textarea.
if
(
Drupal
.
behaviors
.
teaser
&&
textarea
.
is
((
'
.teaser:not(.teaser-processed)
'
)))
{
Drupal
.
behaviors
.
teaser
(
this
.
parentNode
);
}
// When wrapping the text area, work around an IE margin bug. See:
// http://jaspan.com/ie-inherited-margin-bug-form-elements-and-haslayout
$
(
this
).
wrap
(
'
<div class="resizable-textarea"><span></span></div>
'
)
.
parent
().
append
(
$
(
'
<div class="grippie"></div>
'
).
mousedown
(
startDrag
));
// Inherit visibility
if
(
$
(
this
).
is
(
'
[@disabled]
'
))
{
$
(
this
).
parent
().
hide
();
$
(
this
).
show
();
}
var
grippie
=
$
(
'
div.grippie
'
,
$
(
this
).
parent
())[
0
];
grippie
.
style
.
marginRight
=
(
grippie
.
offsetWidth
-
$
(
this
)[
0
].
offsetWidth
)
+
'
px
'
;
...
...
This diff is collapsed.
Click to expand it.
modules/system/system.css
+
4
−
0
View file @
adf83689
...
...
@@ -392,6 +392,10 @@ a.tabledrag-handle-hover .handle {
background-position
:
center
1px
;
margin-bottom
:
-2px
;
}
/* Keeps inner content contained in Opera 9. */
.teaser-checkbox
{
padding-top
:
1px
;
}
div
.teaser-button-wrapper
{
float
:
right
;
/* LTR */
padding-right
:
5%
;
/* LTR */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment