Fossil SCM
Revert a /chat change, introduced in [be01315c86cd2f7d], which causes the Send button to trigger a preview update if the current view is the preview. In practice that's annoying, as the shift-enter and the preview button do the same thing and this change forces a separate click to leave preview mode.
Commit
ec6fbe98635fa96d6cc6999a6b2290b15d73caefc4a5a60cffcb42858234dc42
Parent
370c263964ffa4e…
1 file changed
-2
| --- src/fossil.page.chat.js | ||
| +++ src/fossil.page.chat.js | ||
| @@ -1638,12 +1638,10 @@ | ||
| 1638 | 1638 | f.spaces2 = /\s{3,}$/; |
| 1639 | 1639 | } |
| 1640 | 1640 | switch( this.e.currentView ){ |
| 1641 | 1641 | case this.e.viewSearch: this.submitSearch(); |
| 1642 | 1642 | return; |
| 1643 | - case this.e.viewPreview: this.e.btnPreview.click(); | |
| 1644 | - return; | |
| 1645 | 1643 | default: break; |
| 1646 | 1644 | } |
| 1647 | 1645 | this.setCurrentView(this.e.viewMessages); |
| 1648 | 1646 | const fd = new FormData(); |
| 1649 | 1647 | const fallback = {msg: this.inputValue()}; |
| 1650 | 1648 |
| --- src/fossil.page.chat.js | |
| +++ src/fossil.page.chat.js | |
| @@ -1638,12 +1638,10 @@ | |
| 1638 | f.spaces2 = /\s{3,}$/; |
| 1639 | } |
| 1640 | switch( this.e.currentView ){ |
| 1641 | case this.e.viewSearch: this.submitSearch(); |
| 1642 | return; |
| 1643 | case this.e.viewPreview: this.e.btnPreview.click(); |
| 1644 | return; |
| 1645 | default: break; |
| 1646 | } |
| 1647 | this.setCurrentView(this.e.viewMessages); |
| 1648 | const fd = new FormData(); |
| 1649 | const fallback = {msg: this.inputValue()}; |
| 1650 |
| --- src/fossil.page.chat.js | |
| +++ src/fossil.page.chat.js | |
| @@ -1638,12 +1638,10 @@ | |
| 1638 | f.spaces2 = /\s{3,}$/; |
| 1639 | } |
| 1640 | switch( this.e.currentView ){ |
| 1641 | case this.e.viewSearch: this.submitSearch(); |
| 1642 | return; |
| 1643 | default: break; |
| 1644 | } |
| 1645 | this.setCurrentView(this.e.viewMessages); |
| 1646 | const fd = new FormData(); |
| 1647 | const fallback = {msg: this.inputValue()}; |
| 1648 |