Showing the changes to assets/javascripts (1 of 1 file). Show all
Unified · Split
| @@ -329,8 +329,11 @@ $.noop = -> · 328 unmodified lines | |||
| 329 | 329 | ||
| 330 | $.popup = (value) -> | 330 | $.popup = (value) -> |
| 331 | win = window.open() | 331 | win = window.open() |
| 332 | win.opener = null if win.opener | 332 | if win |
| 333 | win.location = value.href or value | 333 | win.opener = null if win.opener |
| 334 | win.location = value.href or value | ||
| 335 | else | ||
| 336 | window.open value.href or value, '_blank' | ||
| 334 | return | 337 | return |
| 335 | 338 | ||
| 336 | $.isTouchScreen = -> | 339 | $.isTouchScreen = -> |