Multi-line title on color selector

This commit is contained in:
GMartigny 2016-03-05 17:31:56 +01:00
parent 7088d9aa33
commit 14fde4f8a0
2 changed files with 5 additions and 4 deletions

View File

@ -110,7 +110,8 @@
};
ns.PaletteController.prototype.setTitleOnPicker_ = function (title, colorPicker) {
var spectrumInputSelector = '.sp-replacer';
colorPicker.next(spectrumInputSelector).attr('title', title);
var parent = colorPicker.parent();
title = parent.data('initial-title') + '<br/>' + title;
parent.attr('data-original-title', title);
};
})();

View File

@ -13,7 +13,7 @@
<div class="palette-wrapper">
<div
class="tool-icon tool-color-picker"
title="Primary - left mouse button"
data-initial-title="Primary - left mouse button"
rel="tooltip"
data-placement="right"
>
@ -21,7 +21,7 @@
</div>
<div
class="tool-icon tool-color-picker"
title="Secondary - right mouse button"
data-initial-title="Secondary - right mouse button"
rel="tooltip"
data-placement="right"
>