summaryrefslogtreecommitdiff
path: root/js/util.js
AgeCommit message (Collapse)Author
2009-11-28Call FormXHR (single) instead of NoticeForm (all)Sarven Capadisli
2009-11-28Bind submit to a form by SN.U.FormXHR() only once.Sarven Capadisli
2009-11-27Better UI for showing 'processing' for NewDirectMessage. Displays itSarven Capadisli
only while it GETs the form.
2009-11-27A simpler way to focus and set the cursor position for NoticeReply().Sarven Capadisli
Works in IE7+, Safari4, Firefox 3.
2009-11-27NoticeReply will now set the focus() position to textare for IESarven Capadisli
2009-11-27Added processing icon for entity_actions anchorsSarven Capadisli
2009-11-27Changed to bind instead of clickSarven Capadisli
2009-11-26Increased z-index for jOverlaySarven Capadisli
2009-11-19Use the browser's geolocation API to set the location on the notice formCraig Andrews
2009-11-13Separated NoticeFavor and calling it from FormNoticeXHR successSarven Capadisli
2009-11-11Separated Init functions to NoticeForm, Notices, EvenActions.Sarven Capadisli
2009-11-11Separated actions that's particular to the notice stream pages intoSarven Capadisli
its own function. It can be reused whenever the common behaviours needs to be initialized.
2009-11-02Binding keyup/keydown only once for .form_noticeSarven Capadisli
2009-11-02Make sure to call FormNoticeEnhancements with a new copy of the formSarven Capadisli
object
2009-11-02Ran through JSLintSarven Capadisli
2009-11-02Fixed object string name and order for submitonreturn actionsSarven Capadisli
2009-11-02Fixed object string nameSarven Capadisli
2009-11-02MinorSarven Capadisli
2009-11-01Updated button.close stylesSarven Capadisli
2009-10-31Use FormNoticeEnhancements instead of CounterSarven Capadisli
2009-10-31Updated counter, submitonreturn to be reused by any form. CreatedSarven Capadisli
FormNoticeEnhancements to call those at one go for any form.
2009-10-31Updated FormNoticeXHR to allow any form_notice as input (e.g., reusedSarven Capadisli
in XHR direct message)
2009-10-31Added XHR for direct messages.Sarven Capadisli
2009-10-30Running through importNode before checking for idSarven Capadisli
2009-10-30Fixed Nudge XHRSarven Capadisli
2009-10-30MinorSarven Capadisli
2009-10-30Using document importNode otherwise IE pukesSarven Capadisli
2009-10-30IE doesn't like last comma. I understand.Sarven Capadisli
2009-10-30Remove attachment view after XHR notice submitSarven Capadisli
2009-10-30Added missing dataType line for ajaxFormSarven Capadisli
2009-10-30Added Init commentSarven Capadisli
2009-10-30Resetting counter after a notice submitSarven Capadisli
2009-10-30Updated author documentationSarven Capadisli
2009-10-30Only run the scripts if the user is logged inSarven Capadisli
2009-10-30Updated notice form counterSarven Capadisli
2009-10-30Updated SubmitOnReturnSarven Capadisli
2009-10-30Updated NoticeDataAttachSarven Capadisli
2009-10-30Updated NoticeAttachmentsSarven Capadisli
2009-10-30Missing :Sarven Capadisli
2009-10-30Updated NoticeReply and NoticeReplySetSarven Capadisli
2009-10-30Updated form_noticeSarven Capadisli
2009-10-30Refactored XHR forms:Sarven Capadisli
.form_user_subscribe .form_user_unsubscribe .form_favor .form_disfavor .form_group_join .form_group_leave .form_user_nudge Using FormXHR()
2009-10-29Updated bookmarklet. Created its own actionSarven Capadisli
2009-08-27Merge branch '0.8.x' into 0.9.xEvan Prodromou
Conflicts: EVENTS.txt actions/finishremotesubscribe.php actions/postnotice.php actions/public.php actions/remotesubscribe.php actions/showstream.php actions/updateprofile.php actions/userauthorization.php classes/laconica.ini lib/common.php lib/oauthstore.php lib/omb.php
2009-08-25update Laconica to StatusNet in js codeEvan Prodromou
2009-08-21Merge branch '0.8.x' into 0.9.xEvan Prodromou
Conflicts: actions/updateprofile.php actions/userauthorization.php classes/User_group.php index.php install.php lib/accountsettingsaction.php lib/logingroupnav.php
2009-08-21counter in notice/message form uses global variable for max lengthEvan Prodromou
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