Browse Source

Refactored hint feature.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
a6248b4aab
  1. 4
      framework/yii/gii/assets/gii.js
  2. 5
      framework/yii/gii/assets/main.css

4
framework/yii/gii/assets/gii.js

@ -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()
});

5
framework/yii/gii/assets/main.css

@ -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;
}

Loading…
Cancel
Save