Commit d8e6e432 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Make page layout thumbnails clickable (Bug 1543358)" into 15.10_STABLE

parents 163c721d 5b1c4492
......@@ -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