Interface fixes

This commit is contained in:
RainLoop Team 2015-03-16 01:58:50 +04:00
parent bce1abd024
commit 3090b44dae
23 changed files with 388 additions and 248 deletions

13
dev/External/ko.js vendored
View file

@ -131,6 +131,11 @@
if (Globals && Globals.aBootstrapDropdowns)
{
Globals.aBootstrapDropdowns.push($(oElement));
$(oElement).click(function () {
require('Common/Utils').detectDropdownVisibility();
});
// ko.utils.domNodeDisposal.addDisposeCallback(oElement, function () {
// });
}
@ -141,17 +146,13 @@
'update': function (oElement, fValueAccessor) {
if (ko.unwrap(fValueAccessor()))
{
var
$oEl = $(oElement),
Utils = require('Common/Utils')
;
var $oEl = $(oElement);
if (!$oEl.hasClass('open'))
{
$oEl.find('.dropdown-toggle').dropdown('toggle');
Utils.detectDropdownVisibility();
}
require('Common/Utils').detectDropdownVisibility();
fValueAccessor()(false);
}
}