diff --git a/common/locales/en/tasks.json b/common/locales/en/tasks.json index 5c1603e26f..1249c3c1fa 100644 --- a/common/locales/en/tasks.json +++ b/common/locales/en/tasks.json @@ -77,5 +77,6 @@ "sureDelete": "Are you sure you want to delete this task?", "streakCoins": "Streak Bonus!", "pushTaskToTop": "Push task to top", - "pushTaskToBottom": "Push task to bottom" + "pushTaskToBottom": "Push task to bottom", + "emptyTask": "Please enter a <%= taskType %>." } diff --git a/website/views/shared/tasks/lists.jade b/website/views/shared/tasks/lists.jade index d49878f048..f60fe1e58e 100644 --- a/website/views/shared/tasks/lists.jade +++ b/website/views/shared/tasks/lists.jade @@ -27,7 +27,9 @@ script(id='templates/habitrpg-tasks.html', type="text/ng-template") textarea(rows='6', task-focus='list.bulk && list.focus', ng-model='list.newTask', placeholder='{{list.placeHolderBulk}}', ng-if='list.bulk', ui-keydown='{"meta-enter ctrl-enter":"addTask(obj[list.type+\'s\'],list)"}', required) input(type='text', task-focus='!list.bulk && list.focus', ng-model='list.newTask', placeholder='{{list.placeHolder}}', ng-if='!list.bulk', required) button(type='submit', ng-disabled='new{{list.type}}form.$invalid') - span.glyphicon.glyphicon-plus + div( ng-show='new{{list.type}}form.$invalid', tooltip=env.t("emptyTask", {taskType: "{{list.type}}"}) ) + span.glyphicon.glyphicon-plus + span.glyphicon.glyphicon-plus(ng-show='!new{{list.type}}form.$invalid') small.help-block.btn-link.pull-right(ng-click='toggleBulk(list)') span(ng-if='!list.bulk')=env.t('addmultiple') span(ng-if='list.bulk')=env.t('addsingle')