Commit 4b0b2c05 authored by alexpott's avatar alexpott

Issue #2409653 by MathieuSpil: The color module lock/unlock link is not accessible

parent 168a8591
......@@ -210,9 +210,10 @@
i = inputs.length;
if (inputs.length) {
var toggleClick = true;
var lock = $('<div class="lock"></div>').on('click', function () {
var lock = $('<button class="lock link">' + Drupal.t('Unlock') + '</button>').on('click', function (e) {
e.preventDefault();
if (toggleClick) {
$(this).addClass('unlocked');
$(this).addClass('unlocked').html(Drupal.t('Lock'));
$(hooks[i - 1]).attr('class',
locks[i - 2] && $(locks[i - 2]).is(':not(.unlocked)') ? 'hook up' : 'hook'
);
......@@ -221,7 +222,7 @@
);
}
else {
$(this).removeClass('unlocked');
$(this).removeClass('unlocked').html(Drupal.t('Unlock'));
$(hooks[i - 1]).attr('class',
locks[i - 2] && $(locks[i - 2]).is(':not(.unlocked)') ? 'hook both' : 'hook down'
);
......
......@@ -63,6 +63,7 @@
height: 19px;
background: url(../images/lock.png) no-repeat 50% 0;
cursor: pointer;
text-indent: -9999px;
}
[dir="rtl"] #palette .lock {
float: right;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment