Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
afef1a20
Commit
afef1a20
authored
Aug 22, 2012
by
Nathaniel Catchpole
Browse files
Issue
#1684822
by droplet: JSHint block.
parent
81f274ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/block/block.js
View file @
afef1a20
(
function
(
$
)
{
(
function
(
$
,
window
)
{
"
use strict
"
;
...
...
@@ -90,7 +90,7 @@ Drupal.behaviors.blockDrag = {
// Check whether the newly picked region is available for this block.
if
(
regionField
.
find
(
'
option[value=
'
+
regionName
+
'
]
'
).
length
===
0
)
{
// If not, alert the user and keep the block in its old region setting.
alert
(
Drupal
.
t
(
'
The block cannot be placed in this region.
'
));
window
.
alert
(
Drupal
.
t
(
'
The block cannot be placed in this region.
'
));
// Simulate that there was a selected element change, so the row is put
// back to from where the user tried to drag it.
regionField
.
change
();
...
...
@@ -148,4 +148,4 @@ Drupal.behaviors.blockDrag = {
}
};
})(
jQuery
);
})(
jQuery
,
window
);
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment