rename website/client to website/client-old

This commit is contained in:
Matteo Pagliazzi
2016-09-14 15:06:32 +02:00
parent 555ddbbe4c
commit 4b48b7a5f6
353 changed files with 57 additions and 57 deletions

View File

@@ -0,0 +1,21 @@
'use strict';
(function(){
angular
.module('habitrpg')
.directive('expandMenu', expandMenu);
function expandMenu() {
return {
restrict: 'A',
link: function($scope, element, attrs) {
element.on('click', function(event) {
$scope._expandedMenu = $scope._expandedMenu || {};
$scope._expandedMenu.menu = ($scope._expandedMenu.menu === attrs.menu) ? null : attrs.menu;
$scope.$apply()
});
}
}
}
}());