Evan Prodromou
6dcded4129
counter in notice/message form uses global variable for max length
2009-08-21 07:22:53 -04:00
brion
84227dd4e1
Use spinner icon while performing AJAX submissions of favorite/unfavorite button so there's some visual feedback that something's happening.
2009-08-16 20:01:56 -04:00
Jeffery To
a459313e10
Updated Jcrop to 0.9.8 (avatar cropping wasn't working in IE7 with 0.9.5)
2009-08-11 20:29:45 +08:00
brion
a1a97930f3
Workaround for bug 1317 '"What's up" textarea on iPhone missing proper 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-10 11:58:55 -04:00
brion
c6d2e54a71
Throttles updating of the character counter to reduce the performance impact on typing, especially on slower devices (mobiles, netbooks).
...
http://laconi.ca/trac/ticket/1462
2009-08-08 21:50:31 -04:00
Sarven Capadisli
534d0d804c
Fix for removing the first occurance of the duplicate nickname in
...
textarea when NoticeReply() is used.
2009-08-08 10:44:28 +00:00
Tom Adams
b2e9d23b84
Set counter text only when it differs from the new remaining count.
...
This speeds up keyboard navigation around the textarea field.
2009-08-06 23:17:23 +01:00
Sarven Capadisli
557e214ce9
Refactored rgb2hex
2009-08-04 12:26:29 -04:00
Sarven Capadisli
3a6e7d68fc
Ticket 1758 Multiple replies in web interface on "profile" page
...
appends own username
2009-08-04 15:54:02 +00:00
Sarven Capadisli
d0a020dd4e
Merge branch '0.8.x' of git@gitorious.org:laconica/mainline into 0.8.x
2009-08-04 15:53:15 +00:00
Tom Adams
ffa1d662a7
Didn't test that JS in IE. Revert a little.
2009-08-04 16:15:36 +01:00
Tom Adams
39c420b51f
Set focus to end of field.
2009-08-04 09:22:37 +01:00
Tom Adams
2b00990d27
Prepend replyto string to message, don't destroy user input!
2009-08-04 01:58:45 +01:00
Tom Adams
20b2540779
Only warn when chars remaining < 0, not <= 0.
2009-08-04 01:24:50 +01:00
Sarven Capadisli
5f3af3e121
Added credit to rgb2hex() author
2009-07-31 19:31:23 +00:00
Sarven Capadisli
80ad02610a
Removed default values from <input>s. JavaScript will now get the
...
colours from the theme. This approach removes data that was
previously available in HTML. It was only necessary if the user wanted
to know the site's default values.
2009-07-30 20:44:51 +00:00
Sarven Capadisli
0b44b252a0
Updated attachment view position. It is now closer to top.
2009-07-15 19:53:24 +00:00
Sarven Capadisli
be0b149517
Updated max-width values for attachment view
2009-07-09 17:01:45 +00:00
Robin Millette
be8d77c923
Trac #1689 : inreplyto hidden value doesn't get cleared after a successful submit (javascript fix)
2009-07-07 23:27:34 -04:00
Sarven Capadisli
bb404c9be2
Disabled textarea focus for conversation page since most entrances to
...
this page is with 'in context' link (which includes a fragment
identifier)
2009-07-02 21:29:03 +00:00
Sarven Capadisli
e39b2378be
Removed extra slash
2009-07-01 23:18:35 +00:00
Sarven Capadisli
c832888234
Centres the overlay container as best as it can (given that we can't
...
calculate the height of the XHR response container without actually
loading it into the DOM).
2009-07-01 20:57:21 +00:00
Evan Prodromou
89240cee95
update joverlay to latest version
2009-07-01 13:46:54 -04:00
Evan Prodromou
8d9827c9af
add the readable source for joverlay
2009-07-01 13:46:32 -04:00
Evan Prodromou
67e3bf0f05
remove extra / in attachment code
2009-07-01 13:43:36 -04:00
Sarven Capadisli
ccfe0e018d
Updated jOverlay version and set max-width for images
2009-06-30 03:05:45 +00:00
Sarven Capadisli
60b47d8797
Added background-attachment:fixed for userdesigns
2009-06-26 15:20:22 +00:00
Sarven Capadisli
9fc8ad4531
Removed redundant selector from JS
2009-06-26 15:10:04 +00:00
Sarven Capadisli
74d9b0f820
Removed unnecessary assignment to variable for background image on
2009-06-26 05:38:43 +00:00
Sarven Capadisli
6a0571d51b
Added functionality to remove the notice data attachment
2009-06-25 21:01:07 +00:00
Sarven Capadisli
1e17f1256a
Shows the selected file attachment under the form_notice textarea
2009-06-25 16:55:19 +00:00
Sarven Capadisli
0c5c834827
Slightly more specific selector. Looks only in the notices in the
...
content area
2009-06-25 03:46:52 +00:00
Sarven Capadisli
eb40fbc17a
On XHR notice post, calls NoticeAttachment to trigger thumbnail and
...
attachment views
2009-06-23 17:05:55 +00:00
Sarven Capadisli
77185dd4c6
A little more specific selector for notice reply
2009-06-18 01:10:48 +00:00
Sarven Capadisli
5854fe194a
Placed a check to make sure there is a reply button in a notice before
...
applying the dynamic action
2009-06-18 01:04:12 +00:00
Zach Copley
164588ef0f
Merge branch '0.8.x' into userdesign
2009-06-17 21:40:52 +00:00
Sarven Capadisli
0e4d8c416d
Removed NoticeHover from JavaScript for speed gain. Using CSS instead
...
to handle the notice hover state. The difference is only seen in the
conversation page.
2009-06-17 07:49:41 +00:00
Sarven Capadisli
ea5d46a94d
It was accidently removed
2009-06-17 06:38:21 +00:00
Sarven Capadisli
7148ea86df
Dynamically tile background image and turn background image on or off
...
in user design
2009-06-17 06:23:57 +00:00
Sarven Capadisli
93205cac09
Connects html, body and content, navigation background colors
2009-06-16 06:24:29 +00:00
Sarven Capadisli
bd8f9a979a
Converts user entry in the form of '#1B2' into '#11BB22' for user
...
design swatches
2009-06-16 02:33:10 +00:00
Sarven Capadisli
2f693c4c94
Updated swatch numbering
2009-06-15 21:02:12 +00:00
Sarven Capadisli
dbbb3a4fb5
Dynamic notice item insertion for conversation page.
2009-06-13 00:53:23 -04:00
Evan Prodromou
c0853e3040
Merge branch '0.7.x' into 0.8.x
2009-06-10 09:09:57 -07:00
Sarven Capadisli
d9e5cda35d
Removed 404 test
2009-06-09 00:09:44 +00:00
Sarven Capadisli
67cb99c442
Clearing notice_data-test and resetting notice_text-count if the
...
notice XHR. Removed hanging text URL from previous commit.
2009-06-08 20:52:27 +00:00
Sarven Capadisli
c5378beb83
Revert "Clearing notice_data-test and resetting notice_text-count if the notice XHR"
...
This reverts commit b20ac7a1fe
.
2009-06-08 20:50:13 +00:00
Sarven Capadisli
b20ac7a1fe
Clearing notice_data-test and resetting notice_text-count if the notice XHR
...
response is empty and have a 20x,30x HTTP status
2009-06-08 20:45:44 +00:00
Sarven Capadisli
a2ca9d96d2
Temporary workaround for silenting mysterious 200 OK error for XHR
...
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-08 18:55:23 +00:00
Sarven Capadisli
b708b81065
Init notice_data-attach UI for form_notice
2009-06-05 00:00:04 -04:00
Robin Millette
fe38827a76
Remove js that crept back in, added another error string.
2009-06-01 17:40:53 -04:00
Robin Millette
0cbd72e092
Re-added some javascript to toggle upload field.
2009-06-01 15:52:52 -04:00
Sarven Capadisli
a39fa0ce2b
Unnecessary JavaScript for notice form attachment
2009-06-01 15:20:12 -04:00
Robin Millette
ebeb5f744c
Merge branch '0.8.x' of git@gitorious.org:+laconica-developers/laconica/dev into upload
...
Conflicts:
js/util.js
lib/attachmentlist.php
2009-05-31 17:12:04 -04:00
Sarven Capadisli
f56f2f52e7
Some cross-browser updates for conversation UI
2009-05-30 19:42:15 +00:00
Sarven Capadisli
6612993c1d
Prevents regular hovers over attachment anchors from making a GET
...
request for the thumbnail. There is 500 ms delay while on mouseover
state before going ahead with the request. Fun.
2009-05-28 23:16:25 +00:00
Sarven Capadisli
f0dc97e4da
Smarter call for hover events. It now makes a new GET for attachment
...
thumbnails on mouseover only if it hasn't been requested before on
that notice attachment.
2009-05-28 22:59:22 +00:00
Sarven Capadisli
60ac9bc6fd
Bunch of UI fixes/improvements for attachments (hover, overlay, notice view,
...
clip)
2009-05-27 19:43:43 +00:00
Robin Millette
af700ea277
Let's you upload a file with a notice and have it shown with other attachments.
2009-05-26 21:20:04 -04:00
Sarven Capadisli
3877324fd8
Updated JS to show/hide attachment thumbnails with timers. Minor
...
markup changes.
2009-05-25 17:30:57 -04:00
Sarven Capadisli
01dad57298
Markup cleanup for attachments
2009-05-25 15:53:19 -04:00
Sarven Capadisli
7923e84fba
Fixed URL for attachment thumbnail and XHR
2009-05-25 18:54:45 +00:00
Robin Millette
84edf12791
Display thumbnail on hover over links in notices when appropriate.
2009-05-25 11:13:13 -04:00
Robin Millette
5f3acc2527
Removed big clip and replaced with smaller inline one next to each URL (in a notice) that's actually an attachment. Overlay (popup) on click.
2009-05-24 21:13:42 -04:00
Robin Millette
b0a891e92b
Made ajax link to show attachment popups relative in util.js
2009-05-24 18:40:11 -04:00
Robin Millette
8c2473a227
Merge branch '0.8.x' of git@gitorious.org:+laconica-developers/laconica/dev into 0.8.x
2009-05-24 04:44:52 -04:00
Robin Millette
b5ac6e31f2
Rearranged attachment info to only appear on each applicable notice page and thru an ajax popup.
2009-05-24 04:43:34 -04:00
Sarven Capadisli
7e0a314768
Using event bubbling instead of event handling thanks to Ara
...
Pehlivanian http://arapehlivanian.com
2009-05-24 01:38:11 +00:00
Sarven Capadisli
ef2a5c794e
Fixed in reply to JS link for Conversation page. Handles nested
...
notices better.
2009-05-22 16:19:14 +00:00
Sarven Capadisli
b23d423081
Added licensing information for jcrop.go and farbtastic.go scripts
2009-05-20 23:37:20 +00:00
Sarven Capadisli
b561962b59
Color picker reset: Resetting form values will also dynamically update
...
the page colors back to their original.
2009-05-20 23:11:35 +00:00
Sarven Capadisli
09e95cc33f
Fixed array index
2009-05-19 17:31:43 +00:00
Sarven Capadisli
0c442e459e
Added reset button
...
Rearranged swatch layout
Added background image upload input file
2009-05-19 17:05:30 +00:00
Sarven Capadisli
806200379d
Dynamic color updates to page elements when user picks a color.
...
Using JSON to create swatches in HTML output.
2009-05-18 20:10:46 +00:00
Robin Millette
f3ea79a12a
Added site path field to installer + fancy URL javascript auto-detection.
2009-05-17 00:05:07 -04:00
Robin Millette
fecb8c706d
Attachments and their list now provide "ajax" view. Also added a few sidebars relating tags and attachments.
2009-05-15 15:04:58 -04:00
Sarven Capadisli
c8fd3c5765
Merge branch '0.7.x' into 0.8.x
2009-05-01 17:03:51 +00:00
Sarven Capadisli
deb07487bd
60 seconds hard timeout for XHR notice posting. JavaScript throws an
...
alert message to the client if the server doesn't respond back in any
way.
2009-05-01 17:00:36 +00:00
Ori Avtalion
609ac4c224
Fix link to identi.ca in JavaScript badge
2009-05-01 07:12:37 -04:00
Sarven Capadisli
d30df07908
Merge branch '0.7.x' into 0.8.x
...
Resolved Conflicts:
lib/queuehandler.php
lib/util.php
theme/base/css/display.css
2009-05-01 00:16:25 +00:00
Evan Prodromou
7405d9dfa6
Don't add a node if it's already there
...
Try not to double-add a node on Ajax submit. Normally not a big deal,
but may happen if the CometPlugin (or in the future Strophe or other
auto-update plugins) is enabled.
2009-04-26 21:16:09 -04:00
Sarven Capadisli
12867d114d
UI for server errors.
2009-04-24 17:22:43 +00:00
Sarven Capadisli
83ba1b0b5e
The real 7 seconds (7000) timeout for XHR posting.
2009-04-23 21:51:49 +00:00
Sarven Capadisli
2bdf192dab
XHR alerts for server-side errors: 404, 502, 503, 504. There is also a
...
7 second timeout if the server doesn't get back with a response.
2009-04-23 21:35:21 +00:00
Sarven Capadisli
63c52784c7
Allowing XHR for Inbox/Outbox pages.
2009-04-23 02:22:00 +00:00
Robin Millette
39c0e3a9ef
fix 0.7.x 0.8.x merge conflict in register.php
2009-04-18 21:14:31 +00:00
Sarven Capadisli
81714c6c31
counter() after val() reset to avoid (weird) bug.
2009-04-17 20:14:06 +00:00
Sarven Capadisli
b22f446df2
Clear notice char counter for direct messages as well.
2009-04-17 19:51:20 +00:00
Robin Millette
e5094c3359
fix merge conflict 0.7.x 0.8.x in util.php and register.php.
2009-04-17 17:04:05 +00:00
Sarven Capadisli
c3a44d2ab9
form_notice textarea is cleared on successful direct message post.
...
Disabled notice posting with XHR on Inbox and Outbox pages. This will
be revisited in 0.8.x.
2009-04-16 21:57:42 +00:00
Sarven Capadisli
ed3d68435f
Using farbtastic jQuery plugin to select design colours.
2009-04-13 05:39:23 +00:00
Evan Prodromou
559cf75edb
upgrade jQuery to 1.3.2
2009-03-30 11:11:53 -04:00
Sarven Capadisli
90e5f01f8a
Processing indicator (aka spinner thingy) for form_notice submits
2009-03-25 22:53:21 +00:00
Evan Prodromou
e185c0395a
Revert "trac #201 Add flowplayer to enable multimedia playback capability."
...
This reverts commit 9c9b6790ce
.
This code wasn't ready for release, so I've reverted it for now.
Conflicts:
lib/action.php
lib/util.php
2009-03-12 00:13:28 -04:00
Sarven Capadisli
dcdf47cff2
Avatar crop fix for shrinking/stretching of images when user doesn't
...
scale it with the Jcrop tool (but hits Crop). This will use the lower
value from width/height.
2009-03-04 05:11:18 +00:00
Zach Copley
1fdb35bbf1
New doc page for Identi.ca badge and minor updates to badge's js
2009-02-20 17:17:20 -08:00
Robin Millette
9c9b6790ce
trac #201 Add flowplayer to enable multimedia playback capability.
2009-02-16 17:46:24 +00:00
Evan Prodromou
e5bad15264
upgrade jQuery from 1.3 to 1.3.1
2009-02-09 12:39:03 -05:00
Zach Copley
61b17b4c02
Facebook app: don't add FBJS event listeners to notice input box if it's not on the page
2009-02-05 07:10:11 +00:00
Sarven Capadisli
e2d445abbb
Uses regular HTTP GET to new notice replyto page instead of JS when
...
notice_data-text is available.
2009-01-28 15:25:50 +00:00