Commit Graph

267 Commits

Author SHA1 Message Date
kikito
22ec287b16 Removes the user param from the client and forces it to be current_user in the controller 2015-12-16 18:06:25 +01:00
kikito
e6755fa804 Fixes typo in annotable.js.coffee 2015-12-16 18:05:52 +01:00
kikito
f43248b174 renames & refactors annotations.js into annotable.js 2015-12-16 16:07:23 +01:00
rgarcia
60d6f1c41b annotates legislations instead of proposals 2015-12-16 11:45:47 +01:00
Abigail Sosa
bb5da1af7f Se agrega usuario autor a cada anotacion 2015-12-16 11:45:46 +01:00
Abigail Sosa
e2f6950dc4 Carga anotaciones de la propuesta 2015-12-16 11:45:46 +01:00
Abigail Sosa
189a6426b1 Se agregan anotaciones a propuestas existentes 2015-12-16 11:45:46 +01:00
Juanjo Bazán
328bd767ca adds js file for IE eyes only 2015-12-14 12:56:50 +01:00
Juanjo Bazán
393ff6ddd9 removes IE specific js files from application.js 2015-12-14 12:56:13 +01:00
Jakub
12c28fe32d Fix double-submission prevention not working. 2015-11-26 17:14:14 +01:00
Sergio Arbeo
12ec1fe6f6 Update comments count when commenting on a debate or proposal 2015-10-27 01:02:39 +01:00
Juanjo Bazán
8c99c6a5f0 refactors stats and optimizes js
JS libraries for stats (d3, c3, etc.) only load now when needed (stats/show)
2015-09-23 19:37:24 +02:00
David Gil
e8f1d627b1 binds the ie alert close link to a cookie that will be checked before showing the alert the next time 2015-09-18 01:25:55 +02:00
kikito
468c5c2a72 fixes two issues in prevent_double_submission.js : disabled inputs are not sent on put, and jquery each iterates over "this" 2015-09-13 22:07:45 +02:00
kikito
08dfa982eb Fixes error in double_submission button
It did not take into account that some forms can have more than 1
submit button, which made the code not include the button values in
some puts and posts.
2015-09-13 22:07:44 +02:00
rgarcia
ad8880d02c adds proposal votes 2015-09-13 21:56:52 +02:00
kikito
356f1c29ce Allows moderators to hide proposals from index 2015-09-13 14:39:38 +02:00
rgarcia
f3af263e68 adds crud specs for proposals 2015-09-13 11:47:57 +02:00
Raimond Garcia
725b9f2fe2 Merge pull request #465 from dgilperez/prevent_double_comments
Prevents double submit for form buttons
2015-09-10 20:55:05 +02:00
David Gil
a5f05455c4 prefers :button and :submit selector to css class in selector 2015-09-10 18:42:53 +02:00
David Gil
2f5168a2bf changes default loading text to "..." 2015-09-10 18:35:48 +02:00
David Gil
a742afff9b clean code 2015-09-10 18:00:48 +02:00
David Gil
81b1549d11 prevents double submit for form buttons 2015-09-10 17:58:02 +02:00
David Gil
30ee3b9aef adds Turbolinks progress bar 2015-09-10 13:35:01 +02:00
Alberto Garcia Cabeza
dba3385a6c Adds rem and respond js 2015-09-09 20:32:38 +02:00
kikito
48ba9a436d adds select all/none to bulk moderation 2015-09-08 20:46:18 +02:00
rgarcia
c7129a9218 initialize dropdown after turbolink request 2015-09-05 01:18:09 +02:00
Juanjo Bazán
f9067fe201 Fixes CKeditor & Turbolinks issue
Closes #330
2015-09-04 13:16:25 +02:00
Juanjo Bazán
8915ce7ffd adds interface to disallow organizations votes
on debates
2015-09-02 12:16:55 +02:00
Juanjo Bazán
2ed0486423 toggles layer on votes via js 2015-09-01 17:49:03 +02:00
kikito
088144dcd1 Refactor debates order select using js-location-changer 2015-08-28 17:17:21 +02:00
kikito
934512ad7a made the locale switcher use less js, more ruby & html 2015-08-28 17:02:06 +02:00
Marko Lovic
e8004ca1d3 Add to javascript to handle debates order change 2015-08-27 17:18:07 +02:00
kikito
e68ee3ffae Replaces id by js-class in moderator-debate-actions 2015-08-24 18:45:22 +02:00
kikito
36fb9b60b2 Use a js-class instead of an id for moderator-comment-actions 2015-08-24 18:35:59 +02:00
kikito
710e83fb22 Adds locale switcher js code + feature tests 2015-08-19 21:40:17 +02:00
kikito
961a317c9b Adds (a modified version of) queryParameters.js 2015-08-19 21:26:29 +02:00
Juanjo Bazán
7e1cd2940d Fix conflicts 2015-08-17 21:08:15 +02:00
Eloy Gomez
5b0cd4a8ba Show charts using c3.js 2015-08-17 19:15:17 +02:00
Eloy Gomez
637e428f4c Add c3.js and dependencies 2015-08-17 19:13:38 +02:00
rgarcia
f31ed2940d adds moderation to comments and debates [#136] 2015-08-17 13:39:31 +02:00
rgarcia
a81612b226 improves consistency of error messages [#110] 2015-08-16 15:57:09 +02:00
David Gil
8b89cc5117 adds some js to click-and-add tags to the debate's tag list input 2015-08-15 18:57:27 +02:00
Juanjo Bazán
7919460554 removes comment 2015-08-14 23:41:00 +02:00
David Gil
994774ec65 prevents for Comments.initialize to be called twice causing unexpected behaviour in forms, when initialize_modules is called on ajax:complete 2015-08-14 21:23:06 +02:00
David Gil
9d4a3b08d7 use initialjs-rails instead our own copy of initial.js and view helper 2015-08-14 21:16:53 +02:00
David Gil
65998070cc initialize user avatars on ajax:complete for comments to show correctly after create 2015-08-14 21:15:59 +02:00
David Gil
925921d605 adding initial.js to show Gmail-like user avatars; adding avatar_image helper to abstract from plugin options adding the two currently used styles, profile and small 2015-08-14 21:15:59 +02:00
Juanjo Bazán
f2ea7fd95e fixes bug that hides comment form after reply
Closes #160
2015-08-13 18:27:48 +02:00
Enrique García
1299987272 Merge pull request #146 from dgilperez/issue-142
Fixes #142
2015-08-12 10:50:38 +02:00