fade controls in and out

This commit is contained in:
Manuel Friedli 2014-08-12 11:55:34 +02:00
parent a3dce2322b
commit fcfdaaa2cd

View file

@ -134,7 +134,7 @@
}; };
// private helper methods (not exported) // private helper methods (not exported)
var showConfigScreen = function showConfigScreen() { var showConfigScreen = function showConfigScreen() {
$('#uhr-controlpanel' + this.id).show(); $('#uhr-controlpanel' + this.id).fadeIn('fast');
}; };
// set up // set up
var setupHTML = function setupHTML() { var setupHTML = function setupHTML() {
@ -187,7 +187,7 @@
} }
var closebutton = $('<a class="uhr-closecontrolpanel" id="uhr-closecontrolpanel' + this.id + '"></a>'); var closebutton = $('<a class="uhr-closecontrolpanel" id="uhr-closecontrolpanel' + this.id + '"></a>');
closebutton.on('click', function () { closebutton.on('click', function () {
$('#uhr-controlpanel' + this.id).hide(); $('#uhr-controlpanel' + this.id).fadeOut('fast');
}.bind(this)); }.bind(this));
content.append(closebutton); content.append(closebutton);
e.after(controlpanel); e.after(controlpanel);