Commit Graph

420 Commits

Author SHA1 Message Date
Mikael Nordfeldth
5c262a788d Unused, unnecessary and intrusive cookie/storage removed! 2016-01-13 15:22:28 +01:00
Mikael Nordfeldth
d6e56924fe Accessibility improvement, title for popup close button
Apparently it read as "times" in screen readers.
2015-09-28 00:47:16 +02:00
Chimo
a25d952ef9 $.cookie('n', null) -> $.removeCookie as of 1.4.0 2015-06-20 19:39:12 -04:00
Chimo
9e1d4bfbf0 jquery-cookie returns undefined as of 1.4.0
when a cookie isn't set.

This fixes a problem where the browser was never asking for location,
and the JSON.parse call was throwing an exception when the geolocation cookie wasn't
present.
2015-06-20 19:38:58 -04:00
Mikael Nordfeldth
7c373edf4d implement javascript callbacks (no remove yet) 2015-06-14 23:14:00 +02:00
Mikael Nordfeldth
41fe435553 oops forgot an alert() 2015-06-14 22:04:57 +02:00
Mikael Nordfeldth
01cbe744b6 Move some javascript out to an E (Event) object 2015-06-14 21:57:39 +02:00
Mikael Nordfeldth
07d92acfd0 Fix "unique notice form ID" code for reply forms 2015-04-06 17:35:29 +02:00
Mikael Nordfeldth
3302067aad javascript fixes for reply form fetching
It doesn't update the ID properly yet, which should be done to avoid
creating duplicate forms which are identical to HTML parsers...
2015-03-10 21:47:28 +01:00
Mikael Nordfeldth
1442ca16b4 Some reply buttons wouldn't work the first time they were clicked. 2015-03-08 12:54:08 +01:00
Mikael Nordfeldth
3c5383b11c All the AJAX calls should be made with $.ajax
because we're gonna want to expect application/xml or text/xml back.

There's a weird thing in Firefox where the call on line ~703 makes the
web developer console output "not well formed" which is for the returned
data. It is assumed to be text/xml - which it is - but the doctype says
"html" (because it is first <?xml..?> followed by <!DOCTYPE html ...->

This doesn't cause any malfunction right now, just the output in the
console. I'm not exactly sure how to fix it. Probably remove the DOCTYPE
output for AJAX calls, but I'm not sure that's the best way. Could this
maybe even be a browser/javascript/whatever bug? Because the Content-Type
from the server _is_ right...
2015-03-08 01:36:59 +01:00
Mikael Nordfeldth
77190c9a87 Need to run the NoticeFormSetup if forms are prerendered 2015-03-07 23:42:27 +01:00
Mikael Nordfeldth
b604630a74 Don't put reply in a popup, it was undesired for users
Maybe could make that optional or something in the DefaultLayout plugin...
2015-03-07 23:36:27 +01:00
Mikael Nordfeldth
4e682f3d88 Reply popup works now
...WHY does javascript let me define the same value twice in the same
definition without warning about it? I hate Javascript. :(
2015-03-07 20:35:05 +01:00
Mikael Nordfeldth
be15ab47dc jquery infieldlabel.js removed from script list 2015-03-07 12:32:24 +01:00
Mikael Nordfeldth
6080f6673e "infield labels" should be migrated to HTML5 placeholder 2015-03-07 00:49:05 +01:00
Mikael Nordfeldth
6b147175bb Start working a bit more consistently with "notice-options"
Let's get the AJAX response and present it to the user with the same
mechanisms for all actions, instead of having a bunch of javascript
for various circumstances (fave, repeat, delete should all be the same
behaviour for example).
2015-03-07 00:32:26 +01:00
Mikael Nordfeldth
503c05b749 No need for NoticeFormMaster anymore 2015-03-07 00:00:02 +01:00
Mikael Nordfeldth
8cf0628f28 Replies to replies without reloading page now work 2015-03-06 23:47:03 +01:00
Mikael Nordfeldth
45861c6d9c Reply notice forms are functional again, but not AJAX 2015-03-06 21:20:46 +01:00
Mikael Nordfeldth
8abc2d3b8d Remove some more reply-placeholder stuff 2015-03-06 20:42:50 +01:00
Mikael Nordfeldth
0da7512597 No separate placeholder input element for replyforms
Also we're moving the rendering of these out into a separate plugin. Not
done yet, some javascript should be moved out as well.
2015-03-06 20:22:01 +01:00
Chimo
ef780d5034 Move people tag autocomplete JS to plugin
As discussed in https://gitorious.org/social/mainline/merge_requests/47
2015-02-15 19:10:05 -05:00
Chimo
3f8a519980 JS: Fixes jQueryUI autocomplete 'undefined' errors
data("autocomplete") was renamed to data("ui-autocomplete") starting
from v1.9:
http://jqueryui.com/upgrade-guide/1.9/#changed-naming-convention-for-data-keys
2015-02-15 16:11:23 -05:00
Mikael Nordfeldth
1c478768ad True isn't true in Javascript.
Apparently True isn't true in javascript. They fiddle around like crazy with
loose typing (causing all kinds of problems) but vars are case sensitive?!
2015-02-05 12:13:01 +01:00
Mikael Nordfeldth
ad93ad9d07 Only Firefox has predefined js function args (thanks MrB) 2015-02-05 12:05:10 +01:00
Mikael Nordfeldth
20e1257e70 Nicer behaviour for the loading of the notice input form. 2015-02-01 21:35:36 +01:00
Mikael Nordfeldth
d318b5c10e ...and don't hide it at all since we don't have a placeholder now 2015-01-16 12:10:13 +01:00
Mikael Nordfeldth
59ec9c6988 Don't close main notice input on init if composing 2015-01-16 12:00:45 +01:00
Mikael Nordfeldth
8892702f0c Initially hide input forms on the top
The status input element would attract focus after page load, meaning
if you'd scrolled down a bit then you would be rocketed back up again!
2015-01-16 11:19:22 +01:00
Mikael Nordfeldth
44455bae2a Make sure we add ajax=1 to inputform if using javascript 2015-01-12 12:13:03 +01:00
Mikael Nordfeldth
40412b6b79 status update placeholder removed, javascript not required to post 2015-01-08 18:04:46 +01:00
Hannes Mannerheim
5ca625e470 make .attachment.more ajax work with ajax-loaded content, i.e. infiniteScroll 2014-10-20 16:14:37 +02:00
Hannes Mannerheim
c2fa3ca846 make show more comments work with ajax loaded stuff, i.e. infinitescroll 2014-10-20 16:12:35 +02:00
Hannes Mannerheim
37becd210e makes ajax-repeat work with ajax loaded content 2014-10-06 01:13:38 +02:00
Hannes Mannerheim
1475c775e7 bug, make ajax submission work again 2014-10-06 00:49:35 +02:00
Mikael Nordfeldth
414a95a784 Initial move towards microformats2
No validation has been attempted yet. Lots of changes left. This
is visibly not (very) different from the previous CSS layout. But
some simplifications have been made.

Might cause issues with local changes to themes and CSS. Also maybe
javascript which depends on certain legacy microformats elements.

The move to microformats2 is motivated by the announcement that all
microformats should be migrated to version 2, as of 2014-06-20 at:
http://microformats.org/2014/06/20/microformats-org-turns-9-upgrade-to-microformats2
2014-06-22 17:11:04 +02:00
chimo
8be96a7ebe Catches GeoCookie JSON parsing error 2014-05-31 18:11:04 -04:00
Mikael Nordfeldth
d7c40e77b2 Show more links work with AJAX-retrieved HTML
Attachment_ajaxAction has been removed since AttachmentAction handles
AJAX calls splendidly.
2014-05-19 00:56:21 +02:00
Mikael Nordfeldth
c075b9f730 Removed 'bookmarklet' since we have Bookmark plugin 2014-05-10 02:50:56 +02:00
Mikael Nordfeldth
1e37f374b3 Making us less dependant on javascript trust
Many of the microapps are pretty javascript dependant, but at least
we should allow users to get to the new notice field without allowing
javascript to run in the browser. :)
2014-02-24 02:05:31 +01:00
Mikael Nordfeldth
8dafce34c3 LoginAction somewhat converted to FormAction 2013-10-30 12:23:10 +01:00
Mikael Nordfeldth
11f43637b2 Fixed regression from jquery-cookie update
cookieValue was matched against null, not undefined.
2013-09-14 13:38:50 +02:00
Mikael Nordfeldth
a4d04d24de Fixed regression from util.js updates + syntax cleanup
We introduced a regression in 6fa9062d28
based on syntax error, as a curly brace ({) was lost. This is now fixed.
2013-09-10 15:14:42 +02:00
Brian Tegtmeier
6fa9062d28 Changed bind() and live() to on(). Changed .attr() to .prop() for checked and disabled. Shortcut for (document).ready(). This is the first attempt to convert live() elements to on() according to http://api.jquery.com/live/. 2013-09-10 13:28:49 +02:00
Brion Vibber
1b25b75b53 Use older-style top reply form when replying from old-school conversation tree view (labeled with .old-school class on one of its parent nodes). 2011-09-26 12:54:33 -07:00
Evan Prodromou
1598050f54 Show more menu items when you click More
I added the necessary JavaScript to show more menu items when you click More.
2011-07-07 10:26:07 -04:00
Evan Prodromou
97d77a7c75 Revert "add a 'more' button for groups menu"
This reverts commit 3226f2bef6.
2011-07-06 10:17:22 -04:00
Evan Prodromou
3226f2bef6 add a 'more' button for groups menu 2011-07-05 19:20:44 -04:00
Samantha Doherty
0f5aab8cd5 Small syntax fix for inline reply placeholder. 2011-05-18 09:23:55 -04:00