Users ready
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
var dbo = {};
|
||||
|
||||
$(function(){
|
||||
$( function () {
|
||||
|
||||
ko.bindingHandlers.stopBinding = {
|
||||
init: function () {
|
||||
@@ -18,17 +18,15 @@ $(function(){
|
||||
ko.virtualElements.allowedBindings.stopBinding = true;
|
||||
|
||||
|
||||
|
||||
ko.bindingHandlers.fadeVisible = {
|
||||
init: function(element, valueAccessor) {
|
||||
init : function ( element, valueAccessor ) {
|
||||
var shouldDisplay = valueAccessor();
|
||||
$(element).toggle(shouldDisplay);
|
||||
$( element ).toggle( shouldDisplay );
|
||||
},
|
||||
update: function(element, valueAccessor) {
|
||||
update: function ( element, valueAccessor ) {
|
||||
// On update, fade in/out
|
||||
var shouldDisplay = valueAccessor();
|
||||
shouldDisplay ? $(element).fadeIn(750) : $(element).fadeOut(750);
|
||||
shouldDisplay ? $( element ).fadeIn( 750 ) : $( element ).fadeOut( 750 );
|
||||
}
|
||||
};
|
||||
|
||||
});
|
||||
} );
|
||||
Reference in New Issue
Block a user