Commit graph

68 commits

Author SHA1 Message Date
Anthony Mayer
f197b930e6 Cleaning up vote click handling functions and adding tests.
Also combining can.upvote and can.downvote and deleting unused permissions function and random cleanup.
2015-01-19 00:04:41 -08:00
Sacha Greif
c74a9ae8b0 add loading indicators to forms 2014-12-27 18:34:01 +09:00
Sacha Greif
a85e09f9ad make post-submit callbacks run on server only 2014-12-22 11:49:35 +09:00
Sacha Greif
6fc3bb7092 use type=method for submit and edit forms 2014-12-22 09:49:28 +09:00
Sacha Greif
664c953744 fix bug with post submit error callback 2014-12-06 17:49:29 +09:00
Sacha Greif
b6c54c106d renaming errors to messages 2014-12-06 17:41:15 +09:00
Sacha Greif
ff8bf40694 Merge branch 'telescope-master-semantic-messages' of https://github.com/AdmitHub/Telescope into AdmitHub-telescope-master-semantic-messages
Conflicts:
	client/helpers/handlebars.js
	client/views/comments/comment_edit.js
	client/views/comments/comment_form.js
	client/views/comments/comment_item.js
	client/views/posts/modules/post_upvote.js
	client/views/posts/post_edit.js
	client/views/posts/post_submit.js
	client/views/users/user_edit.js
	client/views/users/user_email.js
	lib/router.js
	packages/telescope-tags/lib/client/views/category_item.js
2014-12-06 17:34:08 +09:00
Anthony Mayer
23b72b9cb8 Switching from manually generating urls to using IronRouter functions.
Using {{pathFor}}, path(), and url() where possible. Passing in path
to Meteor.absoluteUrl() where the IronRouter functions didn't make sense.
Also deleting some random unused code.
2014-12-03 00:06:00 -08:00
Sacha Greif
eda570d66f clean up 2014-12-03 09:10:14 +09:00
Sacha Greif
d36bbf69ab refactoring submitPost and editPost 2014-11-29 11:14:44 +09:00
Sacha Greif
618371636d working on post edit form 2014-11-29 10:25:11 +09:00
Sacha Greif
0031d07468 finishing post submit form refactoring 2014-11-28 15:18:55 +09:00
Sacha Greif
672be96c9b working on post submit form 2014-11-28 11:19:55 +09:00
Sacha Greif
96176398e3 create datetimepicker custom field type package 2014-11-27 17:43:27 +09:00
Daniel Chcouri
2605dcb27c Convert translation keys format to tap:i18n standard
all_lower_cased_underscored_sperated names
2014-11-19 00:00:09 +08:00
Charlie DeTar
ea7efc3550 Replace "throwError" with "flashMessage" and type
Currently, ``throwError`` is used for all manner of messages, including
errors, "success" messages, and "info" messages.  This makes appropriate
styling of the error message difficult.  In addition, the name
``throwError`` seems to create confusion, implying that an error will
actually be thrown (e.g. stopping execution when a user isn't logged in
[0][1]), when in fact it just displays a message.

Replace ``throwError`` with ``flashMessage``, and reliably include a
message "type" (e.g. "error", "success", "info") every time.  rename
``lib/errors.js`` to ``lib/messages.js`` to more accurately reflect its
function.

This commit doesn't rename the message collection (``Errors``), nor the
template responsible for rendering the messages (``error_item.html``) --
that should probably still be done, but has higher likelihood of
trouble for existing alternate themes and installations.

[0] 6ccf7d7d47/client/views/users/user_edit.js (L43)
[1] 083a4c4dc4/client/views/users/user_email.js (L13)
2014-11-05 13:12:09 -07:00
Mitchell Wulfman
8250f52450 cache jQuery objects 2014-09-16 15:13:42 -04:00
Fabrice Delhoste
9511e7a912 Allow custom to cancel server call on edit/submit 2014-08-11 12:09:20 +02:00
Sacha Greif
58ca8d389f Fixing latency compensation issue 2014-08-06 12:02:17 +09:00
Sacha Greif
902a2f94f1 Added rendered hooks (fix #330) 2014-08-01 09:07:58 +09:00
Sacha Greif
3dc08bcc0c working on callbacks 2014-07-05 18:06:28 +09:00
Sacha Greif
c483464f4d making all template helpers dynamic 2014-07-05 11:24:28 +09:00
Sacha Greif
03592fd727 fixing postedAt edit bug 2014-07-03 16:17:36 +09:00
Sacha Greif
07b84b608f fixing bugs 2014-07-03 14:13:47 +09:00
Sacha Greif
e1919593e7 refactoring dates and timestamps 2014-07-03 13:15:23 +09:00
Sacha Greif
b6e26f634e removed autocomplete, fixed bugs with dropdown 2014-07-03 10:28:27 +09:00
Sacha Greif
017f180667 fixing sticky bug #310 2014-07-03 09:30:10 +09:00
Sacha Greif
77d572345b removing a few console.logs 2014-06-25 14:33:41 +09:00
Sacha Greif
6a0c49ce2f fixing validation errors on post submit; changing timestamp types to Date() 2014-06-22 09:55:34 +09:00
Sacha Greif
738857a51e Merge branch 'master' into autoform
Conflicts:
	client/views/posts/post_page.js
2014-06-22 08:58:18 +09:00
Sacha Greif
e2dffb609d sort users by name 2014-06-22 08:57:20 +09:00
Sacha Greif
9bf61f3807 Changing "headline" to "title" 2014-05-16 09:19:35 +09:00
Sacha Greif
8263575879 removing constant and fixing bugs 2014-05-01 19:58:56 -07:00
Sacha Greif
379c002698 working on 0.8 2014-04-30 16:58:11 -07:00
Richard Pullinger
653d20f487 Only show category list on post submit/edit if there are categories 2014-01-30 19:49:03 +00:00
Tarang Patel
39eb1c8e0a Update Events
Move from using depreciated event declaration style. Still supported
not sure if future proof (see
https://github.com/meteor/meteor/blob/devel/packages/templating/deftempl
ate.js#L184)
2013-11-24 16:13:53 +02:00
Toam
c527a00a62 merge 2013-11-09 02:02:05 +01:00
Thomas BRELET
9969d186d6 Localisation of Post views 2013-11-04 18:45:03 +01:00
Sacha Greif
cf2e2533bc replacing Meteor.Router.to by Router.go 2013-10-09 21:49:02 +09:00
Sacha Greif
c866cb6238 added autocomplete to select user form 2013-07-19 12:17:49 +09:00
Sacha Greif
bb61e843c9 moved url shortening server-side 2013-07-04 12:05:09 +09:00
Sacha Greif
01f7506a8a working on bitly link shortening integration 2013-07-04 11:16:11 +09:00
Ozan Yerli
cd56173d2e Duplicate Template.post_submit.rendered assignment in post_submit.js 2013-05-06 11:38:41 +03:00
Sacha Greif
5a79b119b2 merging with simple-digest 2013-04-14 12:38:09 +09:00
Sacha Greif
212bd88fec tweak 2013-04-05 23:18:45 +09:00
Sacha Greif
2d4ad96b73 refactored categories helper, fixed conflicts 2013-02-20 11:04:25 +09:00
Sacha Greif
2ab81ed215 refactoring categories helper 2013-02-20 10:27:45 +09:00
Sacha Greif
694f72af99 denormalizing categories and refactoring findQuery 2013-02-18 13:38:15 +09:00
Sacha Greif
bb7d4b2ed7 Merge branch 'development' 2013-01-14 10:56:31 +09:00
Sacha Greif
9edd21c3ab trying to fix post_edit bug again 2013-01-13 09:13:25 +09:00