Commit a6248b4a by Qiang Xue

Refactored hint feature.

parent 2a152cb5
......@@ -4,9 +4,9 @@ yii.gii = (function ($) {
var initHintBlocks = function () {
$('.hint-block').each(function () {
var $hint = $(this);
$hint.parent().find('input,select,textarea').popover({
$hint.parent().find('label').addClass('help').popover({
html: true,
trigger: 'focus',
trigger: 'hover',
placement: 'right',
content: $hint.html()
});
......
......@@ -47,6 +47,11 @@ body {
overflow: auto;
}
.default-view .form-group label.help {
border-bottom: 1px dashed #888;
cursor: help;
}
.default-view .modal-dialog {
width: 800px;
}
......
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