Merge pull request #10 from MichMich/v2-beta

Update V2 beta from master
This commit is contained in:
Paul-Vincent Roll 2016-04-01 12:18:04 +02:00
commit eb0446bfe1
3 changed files with 6 additions and 5 deletions

View File

@ -14,6 +14,9 @@ This version of the Magic Mirror software focusses on a modular plugin system. B
##Todo
Things that still have to be implemented or changed.
####Main
- Allow show/hide animations to animate the height. This way the other modules won't jump around.
####Documentation
- Write all the documentation. :)

View File

@ -422,10 +422,8 @@ var MM = (function() {
* argument callback function - Called when the animation is done.
*/
hideModule: function(module, speed, callback) {
hideModule(module, speed, function() {
module.hidden = true;
if (typeof callback === 'function') { callback(); }
});
module.hidden = true;
hideModule(module, speed, callback);
},
/* showModule(module, speed, callback)

View File

@ -113,7 +113,7 @@ Module.register('compliments',{
var compliment = document.createTextNode(complimentText);
var wrapper = document.createElement("div");
wrapper.className = 'thin xlarge';
wrapper.className = 'thin xlarge bright';
wrapper.appendChild(compliment);
return wrapper;