Commit graph

991 commits

Author SHA1 Message Date
David Cormier
89c971be72 Merge pull request #299 from glowing-bear/bugfixesimprovementsandothermiscellanii
Bugfixes, Improvements, and other miscellanii
2014-05-09 15:43:43 -04:00
Lorenz Hübschle-Schneider
f5223cc602 Fix broken indentation and closing tags
There were extraneous </div>s around, ugh
2014-05-09 17:49:07 +01:00
Lorenz Hübschle-Schneider
6b99efb4ac Handle _buffer_localvar_{add,remov}ed events
fixes indendation of newly opened buffers
2014-05-09 17:36:35 +01:00
Lorenz Hübschle-Schneider
afc3aa169f Reduce number of watchers for buffer list
One watcher for each buffer
One additional watcher for each buffer without activity
2014-05-09 16:46:46 +01:00
Lorenz Hübschle-Schneider
78056fd994 Remove unnecessary DOM element for plugin 2014-05-09 16:29:07 +01:00
Lorenz Hübschle-Schneider
bf4488a60a remove nonexistent clickhandler nickAction 2014-05-09 16:16:33 +01:00
Lorenz Hübschle-Schneider
703953a0f6 Rename highlightNick to addMention
...because that's what it does
2014-05-09 09:13:46 +01:00
Lorenz Hübschle-Schneider
101699cce2 Clarify that self-hosting GB is *not* needed 2014-05-08 17:26:14 +01:00
David Cormier
90757f343b Merge pull request #297 from torhve/log-unhandled
Log unhandled events
2014-05-08 10:38:52 -04:00
Tor Hveem
71ecdb2608 Log unhandled events 2014-05-08 13:24:57 +02:00
Tor Hveem
de29e40a3c Merge pull request #295 from glowing-bear/fixbufferclosing
Fix buffer closing
2014-05-08 12:08:53 +02:00
Lorenz Hübschle-Schneider
a2073d893e Fix buffer closing
0cbf5fc4 uncovered an old bug
Thanks for noticing, @torhve
2014-05-08 11:05:08 +01:00
Tor Hveem
60b1c48f14 Merge pull request #294 from glowing-bear/fixnickclick
Fix nick clicking
2014-05-08 11:34:54 +02:00
Lorenz Hübschle-Schneider
3d9619abaf Fix nick clicking
- move to correct scope
- use Angular input model instead of accessing DOM directly
- nicklist has changed, adapt to that
2014-05-07 23:40:08 +01:00
Lorenz Hübschle-Schneider
28d3bde907 inputBar.sendMessage: remove unused variable 2014-05-07 23:27:50 +01:00
Tor Hveem
47c9b38d75 Merge pull request #292 from glowing-bear/fixinitialhighlight
Fix initial query notifications
2014-05-08 00:16:08 +02:00
Lorenz Hübschle-Schneider
49a96d5cc0 Merge pull request #293 from torhve/fix-input
Fix problems with inputbar history and nick complete
2014-05-07 23:08:05 +01:00
Tor Hveem
06f3e50684 Fix problems with inputbar history and nick complete 2014-05-08 00:04:12 +02:00
Lorenz Hübschle-Schneider
cc6c159707 Use http URLs in app manifest, too 2014-05-07 23:03:41 +01:00
Lorenz Hübschle-Schneider
cfb7ff3c40 Fix GitHub pages link
SSL isn't officially supported yet and the old link redirects to http:// anyways. That, plus the unsecure websocket on https pages issue, we're better off just linking the http version
2014-05-07 23:01:23 +01:00
Lorenz Hübschle-Schneider
abfa26d6ed Clean up buffer model a bit
* use type local variable to determine whether to indent
* local_variables is not used, don't export/save it
2014-05-07 18:58:59 +01:00
Lorenz Hübschle-Schneider
64af1f357c Fix query notifications on first connect
Fixes #284
2014-05-07 18:57:13 +01:00
Lorenz Hübschle-Schneider
236b0da97b Merge pull request #291 from torhve/fix-empty
Don't send empty commands, use angular model instead of accessing element value directly. Fixes problem with pressing enter will send previous value in history.
2014-05-07 18:20:59 +01:00
Lorenz Hübschle-Schneider
91bca211ee Merge pull request #290 from torhve/sslerror
Better user feedback for connection problems
2014-05-07 18:20:08 +01:00
Tor Hveem
91b0ddc259 Fix syntax. Emit relaydisconnect so connect button changes 2014-05-07 19:15:47 +02:00
Tor Hveem
3f595ea0ac Don't send empty commands, use angular model instead of accessing
element value directly. Fixes problem with pressing enter will send
previous value in history.
2014-05-07 19:01:12 +02:00
Lorenz Hübschle-Schneider
2eddc9ff3d Merge pull request #288 from torhve/clear
Support clearing of buffer lines with command /c or /clear
2014-05-07 17:58:27 +01:00
Tor Hveem
695c429c4f Only support the weechat defaults for clearing buffer 2014-05-07 18:55:48 +02:00
Tor Hveem
fbfeec8fca Change the connect button text based on connection status 2014-05-06 22:00:02 +02:00
Tor Hveem
d2f11ad89d Catch DOMException 2014-05-06 22:00:02 +02:00
Tor Hveem
f21cf4c046 Support clearing of buffer lines with command /c or /clear 2014-05-06 18:39:48 +02:00
David Cormier
9121407ddd Merge pull request #283 from glowing-bear/fixsearch
Don't send input bar contents on buffer switch
2014-05-05 10:41:49 -04:00
Tor Hveem
3499998764 Merge pull request #285 from glowing-bear/encryptioninstructions
Improve encryption instructions
2014-05-05 00:54:51 +02:00
Lorenz Hübschle-Schneider
b766b41ed4 Improve encryption instructions 2014-05-04 19:07:08 +01:00
Lorenz Hübschle-Schneider
84270655ee Don't send input bar contents on buffer switch
Fixes #277
2014-05-04 11:21:35 +01:00
Tor Hveem
b06f6f8589 Merge pull request #280 from glowing-bear/fixnickspeak
Fix bug where updateNickSpeak would fail on lines without a prefix
2014-05-03 16:58:27 +02:00
Tor Hveem
512f7d726b Merge pull request #282 from glowing-bear/fixonelinebug
Fix that bug where only one line was loaded
2014-05-03 16:51:50 +02:00
Lorenz Hübschle-Schneider
9f6f598f40 Merge pull request #281 from glowing-bear/travisbequiet
Travis: disable build success IRC notifications
2014-05-03 15:14:31 +01:00
Lorenz Hübschle-Schneider
aab111bb80 Fix that bug where only one line was loaded
Let me tell the story backwards:
For some reason, only one line would be fetched in `fetchMoreLines`, but
neither `numLines` nor `buffer.requestedLines` were `undefined`. The
paramater `numLines` must have had some strange value, though.
`connection.fetchMoreLines` is invoked through the main controllers
`$scope.fetchMoreLines`, which sets the parameter to `$scope.lines` if it was
undefined before. That value is computed in `$scope.calculateNumLines`,
which takes the height of the lines area and divides it by the height of the first
bufferline. This computation is retriggered on every `resize` event.
The first bufferline is the 'fetch more lines' link at the top of the window. If the
currently active buffer doesn't have more lines, it is hidden with `ngHide`,
causing its `clientHeight` property to be `0`, and the number of lines to be
fetched `$scope.lines = Infinity` (due to a division by zero).
In `connection.fetchMoreLines`, the following request is then made:
`"buffer:0x" + buffer.id + "/own_lines/last_line(-" + numLines + ")/data"`
to which WeeChat responds with one line. Voilà, there's your mess.
2014-05-03 15:07:12 +01:00
Lorenz Hübschle-Schneider
f3a94eaa6c Travis: disable build success IRC notifications 2014-05-03 14:17:57 +01:00
Lorenz Hübschle-Schneider
36a35628e2 Fix bug where updateNickSpeak would fail on lines without a prefix 2014-05-03 14:12:55 +01:00
Tor Hveem
6812501f12 Merge pull request #278 from glowing-bear/uifix
Add space to bottom of #bufferlines
2014-04-30 10:16:49 +02:00
Lorenz Hübschle-Schneider
116e984ac8 Add space to bottom of bufferlines 2014-04-30 09:01:42 +01:00
David Cormier
6e88dfe963 Merge pull request #275 from glowing-bear/countWatchers
Better countWatchers, remove jQuery uses
2014-04-29 23:14:02 -04:00
David Cormier
c104385834 css: merge body tags 2014-04-29 21:31:49 -04:00
Tor Hveem
fb2134736c Pixel adjustments to attempt perfectly align icons in top bar 2014-04-29 21:31:49 -04:00
Tor Hveem
dc077ac903 Improve CSS layout. Fix 98% bug that affects chrome/ff differently.
Conflicts:
	css/glowingbear.css
2014-04-29 21:31:49 -04:00
Tor Hveem
a2969adf9b Remove old cruft 2014-04-29 21:31:48 -04:00
Lorenz Hübschle-Schneider
d363121556 Remove unnecessary uses of jQuery and dead code
Native code is faster anyways ;)
2014-04-28 13:52:21 +01:00
Lorenz Hübschle-Schneider
1d2e5f1d0b Better countWatchers
The old one missed a few, two on the input and the one in the title.
This version also doesn't use jQuery

From: http://stackoverflow.com/a/18539624 by StackOverflow user "plantian"
2014-04-28 13:40:27 +01:00