Jason Robinson
126ced4383
Fix broken bookmarklet if params have encoded linefeeds.
...
Closes #4994
2014-06-22 11:48:24 +03:00
Lukas Matt
c86b57fe8f
Fixed overridden interactions by re-initializing
2014-06-18 13:03:07 -04:00
Lukas Matt
10117b81b3
Hide report icon on SPV if author is current user
2014-06-17 12:23:54 -04:00
Lukas Matt
dec7ef667e
Hide SPV controls unless authenticated
...
* cleaned and removed dead code
refs diaspora/diaspora#4711
2014-06-17 11:31:16 -04:00
Jason Robinson
ad0982f35e
Remove custom bookmarklet error message.
...
Flash error is shown on bookmarklet post error. On error, return post_something message to form
2014-06-01 15:37:54 +03:00
Jason Robinson
f130ab3842
Remove double setButtonsEnabled in publisher error
2014-06-01 15:17:16 +03:00
Jason Robinson
6cf484c9a3
Make sure publisher is totally hidden in bookmarklet after post success
2014-06-01 15:02:40 +03:00
Jason Robinson
128be9204c
Refactor UI hint on status message submit.
...
Now we close the publisher on submit and reopen it on error. The spinner is shown while submission is in progress. Fixes #4949
2014-06-01 14:25:34 +03:00
Jason Robinson
6fd4894997
Add error flash message to publisher on error from server
2014-06-01 13:21:45 +03:00
Jason Robinson
b73e478e26
Add spinner to publisher when posting a message
...
Fixes #4949
2014-05-31 21:05:36 +03:00
Erwan Guyader
24d2ac0ec2
4967 Use https to load the location form OSM
2014-05-26 11:34:01 +02:00
Jonne Haß
e6348aa705
Use toggle() to hide the poll creator
2014-05-24 21:40:48 +02:00
Jonne Haß
9537c45d2a
Merge pull request #4916 from hpetru/validate-poll-answer
...
I added the validation to poll question and poll answer
Conflicts:
app/assets/javascripts/app/views/publisher_view.js
2014-05-24 17:42:18 +02:00
Jonne Haß
ecb1b80e24
Render flash message content with .text
...
.html does not escape any html input in these, leading to XSS
attack vectors.
Thanks to A Kai (@sixhundredns) for reporting the related issues.
2014-05-24 16:08:32 +02:00
Lukas Matt
218845d5b4
Changed and renamed database columns
...
* changed user_id type to integer
* renamed post_id to item_id
* renamed post_type to item_type
2014-05-15 07:23:44 -04:00
Lukas Matt
6f65ef8437
Using save for report model
...
Instead of checking the status code I am using success and
error callbacks from model-save. In that case we have to return
json in the controller for signaling that the request was sucessfully.
2014-05-15 07:23:43 -04:00
Lukas Matt
2e36f8d375
Diaspora review part 1
...
* join the conditions of the inner ifs
* add a uniqueness constraint to the model
* differentiate between author is a local or a remote user
* simplify controller/mailer functions
2014-05-15 07:23:43 -04:00
Lukas Matt
ed96ddac98
Display status when the user send a report
2014-05-15 07:23:43 -04:00
Lukas Matt
d23f4a66da
Cleaned javascript report view
2014-05-15 07:23:43 -04:00
Lukas Matt
1748d3b940
It is now possible to report comments
...
* Renamed PostReport to Report
* Added report button to SPV
* Updated rspec
refs diaspora/diaspora#4732
refs diaspora/diaspora#4710
refs diaspora/diaspora#4711
refs diaspora/diaspora#4517
2014-05-15 07:23:43 -04:00
Jason Robinson
62b5fea526
Merge pull request #4932 from Raven24/fix-bookmarklet
...
port bookmarklet to Backbone.js, use gon for params
2014-05-01 13:29:36 +03:00
Florian Staudacher
9da3bc347b
disable publisher after successfully posting in standalone mode
2014-04-25 19:51:45 +02:00
Florian Staudacher
0d51bba959
port bookmarklet to Backbone.js, use gon for params ( fixes #4931 )
2014-04-19 17:41:21 +02:00
Steffen van Bergerem
232e4fa236
Improve set read/unread in notifications dropdown
2014-04-16 23:33:22 +02:00
Steffen van Bergerem
e1685c9a29
Remove auto 'mark as read' for notifications
2014-04-15 14:51:38 +02:00
Hincu Petru
57de031f6b
I added the validation for blank to poll question and poll answer
2014-04-07 17:17:41 +00:00
Jonne Haß
682a49605e
Merge pull request #4910 from hpetru/rewrite-poll-creator
...
Rewrite poll creation inputs
2014-04-06 22:27:01 +02:00
Hincu Petru
2d3933ccd8
Rewrite poll creation inputs
2014-04-06 15:01:18 +00:00
Jonne Haß
79bc1a7800
Merge pull request #4906 from hpetru/4903-poll-crash-spv
...
Fixed 4903 and not render vote form when user is not logged
2014-04-05 19:17:31 +02:00
Hincu Petru
2ae4d41db3
Fixed 4903 and not render vote form when user is not logged
2014-04-05 14:29:07 +00:00
Hincu Petru
f356ae7216
Add poll in post preview
2014-04-04 11:45:33 +00:00
Hincu Petru
6c00db23cd
I update design for poll in post stream
2014-04-03 20:57:14 +00:00
Hincu Petru
cee90e737c
Make poll to be compatible with bootstrap
2014-04-03 09:03:54 +00:00
Hincu Petru
fed5ea8cda
Refactored poll_view.js
2014-04-02 16:19:07 +00:00
Jonne Haß
211963d320
Merge pull request #4889 from hpetru/4874-malformed-url
...
Catch error from decodeURI for prevent crash in posts parsing
2014-04-01 00:49:27 +02:00
Hincu Petru
552310796c
Catch error from decodeURI for prevent crash in posts parsing
2014-03-31 20:24:47 +00:00
Jannik Streek
6f3844b73b
fixed language files, added rails cache counter for poll answer, fixed bug with same poll input for form
2014-03-31 18:14:08 +02:00
Jannik Streek
4174b88987
percentage result round + minor language fix
2014-03-31 18:14:08 +02:00
Jannik Streek
2d0abbae23
added jasmine test for poll view
2014-03-31 18:14:07 +02:00
Jannik Streek
8f9736a741
fixed poll js bug
2014-03-31 18:14:07 +02:00
Jannik Streek
9c24365fde
changed poll result + some minor text improvements
2014-03-31 18:14:07 +02:00
Jannik Streek
c484b2cd0c
fixed poll icon issue, improved code, poll in bookmarklets now available
2014-03-31 18:14:07 +02:00
Jannik Streek
12fabe2fb9
finalized voting design + some design fixes + improved code
2014-03-31 18:14:07 +02:00
Jannik Streek
d0a77ce6b3
design for poll participation implemented, saving works as well
2014-03-31 18:14:07 +02:00
Jannik Streek
04199837b3
poll creation done
2014-03-31 18:14:07 +02:00
Jannik Streek
18a43295b7
poll form completed
2014-03-31 18:14:06 +02:00
Jannik Streek
fe67bdf2e7
added tests for poll federation and impl for the federation itself. Still in progess
2014-03-31 18:14:06 +02:00
Jannik Streek
dfbe17d046
Poll input fields and data model now available
...
question field of poll now in db
fixed merge issues
2014-03-31 18:14:06 +02:00
Jonne Haß
b207077405
Merge pull request #4859 from hpetru/4848-aspect-memberships-in-notification-dropdown
...
Fixed jQuery evenets in notifications-badge
2014-03-31 13:58:11 +02:00
Hincu Petru
b43e56485d
Fixed jquery event listener from notifications-badge.js
2014-03-31 09:52:07 +00:00