fade controls in and out

This commit is contained in:
Manuel Friedli 2014-08-12 11:55:34 +02:00
parent a3dce2322b
commit fcfdaaa2cd
1 changed files with 485 additions and 485 deletions

View File

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