Added help for shell commands.

This commit is contained in:
Gunther Brunner
2014-05-29 05:01:14 +09:00
parent 7fecf2828b
commit 5782a7af0b
10 changed files with 123 additions and 15 deletions

View File

@@ -1,8 +1,8 @@
module.exports = function basicModeDirective($rootScope, BrowserInfo) {
return {
restrict: 'AE',
link: function (scope, element, attrs) {
$rootScope.basicMode = !!BrowserInfo.small // TODO: use .mobile
link: function (scope, element) {
$rootScope.basicMode = !!BrowserInfo.mobile // CHECK: use .mobile instead of .small
if ($rootScope.basicMode) {
element.addClass('basic-mode')
}