js: move descriptions to bottom, leave suggestion
This commit is contained in:
parent
6f3c76c4f2
commit
73a2060b42
|
@ -103,7 +103,7 @@
|
||||||
suggestionDoubleClick: function (ev)
|
suggestionDoubleClick: function (ev)
|
||||||
{
|
{
|
||||||
var $el = $(ev.currentTarget);
|
var $el = $(ev.currentTarget);
|
||||||
this.getSuggestionList($el)
|
this.getSuggestionList($el);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -234,6 +234,7 @@
|
||||||
} else {
|
} else {
|
||||||
$ul = $('<ul class="director-suggestions"></ul>');
|
$ul = $('<ul class="director-suggestions"></ul>');
|
||||||
$ul.insertAfter($input);
|
$ul.insertAfter($input);
|
||||||
|
$ul.css({width: $input.css('width')});
|
||||||
return this.refreshSuggestionList($ul, $input);
|
return this.refreshSuggestionList($ul, $input);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -347,7 +348,7 @@
|
||||||
* @param ev
|
* @param ev
|
||||||
*/
|
*/
|
||||||
leaveSuggestionField: function(ev) {
|
leaveSuggestionField: function(ev) {
|
||||||
return;
|
// return;
|
||||||
var _this = this;
|
var _this = this;
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
_this.removeSuggestionList($(ev.currentTarget));
|
_this.removeSuggestionList($(ev.currentTarget));
|
||||||
|
@ -533,23 +534,19 @@
|
||||||
var $dt = $dd.prev();
|
var $dt = $dd.prev();
|
||||||
var $form = $dd.closest('form');
|
var $form = $dd.closest('form');
|
||||||
|
|
||||||
|
var $desc = $dd.find('p.description');
|
||||||
|
if ($desc.length) {
|
||||||
|
$form.css({ marginBottom: ($desc.height() + 48) + 'px' });
|
||||||
|
}
|
||||||
|
|
||||||
$form.find('dt, dd, li').removeClass('active');
|
$form.find('dt, dd, li').removeClass('active');
|
||||||
$li.addClass('active');
|
$li.addClass('active');
|
||||||
$dt.addClass('active');
|
$dt.addClass('active');
|
||||||
$dd.addClass('active');
|
$dd.addClass('active');
|
||||||
$dd.find('p.description.fading-out')
|
|
||||||
.stop(true)
|
|
||||||
.removeClass('fading-out')
|
|
||||||
.fadeIn('fast');
|
|
||||||
|
|
||||||
$form.find('dd').not($dd)
|
$form.find('dd').not($dd)
|
||||||
.find('p.description')
|
.find('p.description')
|
||||||
.not('.fading-out')
|
.hide();
|
||||||
.addClass('fading-out')
|
|
||||||
.delay(2000)
|
|
||||||
.fadeOut('slow', function() {
|
|
||||||
$(this).removeClass('fading-out').hide()
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
highlightFormErrors: function($container)
|
highlightFormErrors: function($container)
|
||||||
|
|
Loading…
Reference in New Issue