Commit 5b1c4492 authored by Aaron Wells's avatar Aaron Wells Committed by Robert Lyon
Browse files

Make page layout thumbnails clickable (Bug 1543358)

behatnotneeded: Visual change only

Change-Id: I19bf094ed0ec134d75af7a548920b34ceb1020ee
(cherry picked from commit 892c33e3)
parent 4a5cd9bc
......@@ -104,7 +104,7 @@
if (data.data.newlayout) {
// insert new layout
// clone and tweak
var clone = $('.advancedlayoutselect input[type=radio]:first').parent().clone();
var clone = $('.advancedlayoutselect input[type=radio]:first').parent().parent().clone();
var id = 'viewlayout_advancedlayoutselect' + unique_timestamp();
$('label', clone).attr('for', id).text(data.data.text);
$('input', clone).attr('id', id).val(layoutid);
......@@ -212,7 +212,7 @@
}
function link_thumbs_to_radio_buttons() {
$('.layoutoption.thumbnail').each(function(event) {
$('.layoutoption > .thumbnail').each(function(event) {
$(this).click(function(e) {
$(this).find(':radio').prop('checked', true);
$('#viewlayout_layoutselect').val( $(this).find(':radio').val() );
......
......@@ -65,6 +65,11 @@
}
}
// Show that layout thumbnails can be clicked (Bug 1543358)
.layoutoption > .thumbnail {
cursor: pointer;
}
.blocktype-radio {
display: none;
}
......
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