diff options
author | Julius Haertl <jus@bitgrid.net> | 2016-05-27 10:08:38 +0300 |
---|---|---|
committer | Julius Haertl <jus@bitgrid.net> | 2016-05-27 10:08:38 +0300 |
commit | 037015e8f884ac83c5ac2a354dc4378bbe0a8b7b (patch) | |
tree | 3033a5d825562d1514a9eece1e9325a726239ee5 /js | |
parent | 148ee7a431480e9eab05c2c77449a9c9c2ee7684 (diff) |
Hide menu and show after order loading
fixes #5
Diffstat (limited to 'js')
-rw-r--r-- | js/apporder.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/js/apporder.js b/js/apporder.js index 19fc2dc..1ec6a68 100644 --- a/js/apporder.js +++ b/js/apporder.js @@ -1,6 +1,7 @@ $(function() { var app_menu = $('#apps ul'); + app_menu.hide(); if(!app_menu.length) return; @@ -12,9 +13,10 @@ $(function() { } catch (e) { var order = [] } - if (order.length==0) + if (order.length==0) { + $('#apps ul').show(); return; - + } available_apps = {}; app_menu.find('li').each(function() { var id = $(this).find('a').attr('href'); @@ -23,6 +25,7 @@ $(function() { $.each(order,function(order,value) { app_menu.prepend(available_apps[value]); }) + $('#apps ul').show(); }); // make app menu sortable |