summaryrefslogtreecommitdiff
path: root/js/util.js
AgeCommit message (Collapse)Author
2009-08-16Use spinner icon while performing AJAX submissions of favorite/unfavorite ↵brion
button so there's some visual feedback that something's happening.
2009-08-10Workaround for bug 1317 '"What's up" textarea on iPhone missing proper ↵brion
submit button' http://laconi.ca/trac/ticket/1317 Mobile Safari shows a 'return' button for making newlines in a <textarea> where it would show a submit button for plain <input> text fields... However there's a keydown event handler which is supposed to detect hitting enter and submit the form for us. This didn't work on Mobile Safari because it was checking of 13 ("\r") but the iPhone sends us char 10 ("\n") here. Changed to accept both, so we now submit on hitting 'return' on iPhone. Note: I also added a blur() to move focus out of the textarea, which closes the on-screen keyboard. It will also take focus out of the textarea on other platforms, but this is probably the right thing -- the same thing happens when you push the "send" button after all. Also note: unfortunately the layout right now looks pretty awful generally while editing on the iPhone; you can't see the send button or character counter while typing at the default zoom, and it doesn't zoom out after you submit so you can't really see where your message is going. This should be dealt with in general by fixing up the mobile skin variant...
2009-08-08Throttles updating of the character counter to reduce the performance impact ↵brion
on typing, especially on slower devices (mobiles, netbooks). http://laconi.ca/trac/ticket/1462
2009-08-08Fix for removing the first occurance of the duplicate nickname inSarven Capadisli
textarea when NoticeReply() is used.
2009-08-06Set counter text only when it differs from the new remaining count.Tom Adams
This speeds up keyboard navigation around the textarea field.
2009-08-04Ticket 1758 Multiple replies in web interface on "profile" pageSarven Capadisli
appends own username
2009-08-04Didn't test that JS in IE. Revert a little.Tom Adams
2009-08-04Set focus to end of field.Tom Adams
2009-08-04Prepend replyto string to message, don't destroy user input!Tom Adams
2009-08-04Only warn when chars remaining < 0, not <= 0.Tom Adams
2009-07-15Updated attachment view position. It is now closer to top.Sarven Capadisli
2009-07-09Updated max-width values for attachment viewSarven Capadisli
2009-07-07Trac #1689: inreplyto hidden value doesn't get cleared after a successful ↵Robin Millette
submit (javascript fix)
2009-07-02Disabled textarea focus for conversation page since most entrances toSarven Capadisli
this page is with 'in context' link (which includes a fragment identifier)
2009-07-01Removed extra slashSarven Capadisli
2009-07-01Centres the overlay container as best as it can (given that we can'tSarven Capadisli
calculate the height of the XHR response container without actually loading it into the DOM).
2009-07-01remove extra / in attachment codeEvan Prodromou
2009-06-30Updated jOverlay version and set max-width for imagesSarven Capadisli
2009-06-25Added functionality to remove the notice data attachmentSarven Capadisli
2009-06-25Shows the selected file attachment under the form_notice textareaSarven Capadisli
2009-06-25Slightly more specific selector. Looks only in the notices in theSarven Capadisli
content area
2009-06-23On XHR notice post, calls NoticeAttachment to trigger thumbnail andSarven Capadisli
attachment views
2009-06-18A little more specific selector for notice replySarven Capadisli
2009-06-18Placed a check to make sure there is a reply button in a notice beforeSarven Capadisli
applying the dynamic action
2009-06-17Removed NoticeHover from JavaScript for speed gain. Using CSS insteadSarven Capadisli
to handle the notice hover state. The difference is only seen in the conversation page.
2009-06-13Dynamic notice item insertion for conversation page.Sarven Capadisli
2009-06-10Merge branch '0.7.x' into 0.8.xEvan Prodromou
2009-06-09Removed 404 testSarven Capadisli
2009-06-08Clearing notice_data-test and resetting notice_text-count if theSarven Capadisli
notice XHR. Removed hanging text URL from previous commit.
2009-06-08Revert "Clearing notice_data-test and resetting notice_text-count if the ↵Sarven Capadisli
notice XHR" This reverts commit b20ac7a1fefe40e82b086df3128f06770c8b550d.
2009-06-08Clearing notice_data-test and resetting notice_text-count if the notice XHRSarven Capadisli
response is empty and have a 20x,30x HTTP status
2009-06-08Temporary workaround for silenting mysterious 200 OK error for XHRSarven Capadisli
notice posts. The bug is sometimes reproduceable by sending a notice that includes "@someusernamethatdoesntexist". This patch doesn't throw alerts to user if server doesn't return with an XHR response but HTTP is one of 20x, 30x.
2009-06-05Init notice_data-attach UI for form_noticeSarven Capadisli
2009-06-01Remove js that crept back in, added another error string.Robin Millette
2009-06-01Re-added some javascript to toggle upload field.Robin Millette
2009-06-01Unnecessary JavaScript for notice form attachmentSarven Capadisli
2009-05-31Merge branch '0.8.x' of git@gitorious.org:+laconica-developers/laconica/dev ↵Robin Millette
into upload Conflicts: js/util.js lib/attachmentlist.php
2009-05-30Some cross-browser updates for conversation UISarven Capadisli
2009-05-28Prevents regular hovers over attachment anchors from making a GETSarven Capadisli
request for the thumbnail. There is 500 ms delay while on mouseover state before going ahead with the request. Fun.
2009-05-28Smarter call for hover events. It now makes a new GET for attachmentSarven Capadisli
thumbnails on mouseover only if it hasn't been requested before on that notice attachment.
2009-05-27Bunch of UI fixes/improvements for attachments (hover, overlay, notice view,Sarven Capadisli
clip)
2009-05-26Let's you upload a file with a notice and have it shown with other attachments.Robin Millette
2009-05-25Updated JS to show/hide attachment thumbnails with timers. MinorSarven Capadisli
markup changes.
2009-05-25Markup cleanup for attachmentsSarven Capadisli
2009-05-25Fixed URL for attachment thumbnail and XHRSarven Capadisli
2009-05-25Display thumbnail on hover over links in notices when appropriate.Robin Millette
2009-05-24Removed big clip and replaced with smaller inline one next to each URL (in a ↵Robin Millette
notice) that's actually an attachment. Overlay (popup) on click.
2009-05-24Made ajax link to show attachment popups relative in util.jsRobin Millette
2009-05-24Merge branch '0.8.x' of git@gitorious.org:+laconica-developers/laconica/dev ↵Robin Millette
into 0.8.x
2009-05-24Rearranged attachment info to only appear on each applicable notice page and ↵Robin Millette
thru an ajax popup.