Skip to content

Commit

Permalink
チケットの作成と編集を判断するTips追加
Browse files Browse the repository at this point in the history
  • Loading branch information
onozaty committed May 4, 2023
1 parent 7235ff4 commit 0f658a6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tips/tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ $('#issue-form').on('submit', function() {
});
```

## Judge the creation and editing of an issue

```javascript
if ($('form.new_issue').length === 1) {
// new issue
console.log('new');
}

if ($('form.edit_issue').length === 1) {
// edit issue
console.log('edit');
}
```

## Check the roles

```javascript
Expand Down

0 comments on commit 0f658a6

Please sign in to comment.