Commit a6248b4a by Qiang Xue

Refactored hint feature.

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