aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/static/js
Commit message (Collapse)AuthorAgeFilesLines
* Convert notifications.js to vanilla JavaScript (no jQuery).Ben Sturmfels2021-08-191-29/+21
|
* Convert header_dropdown.js to vanilla JavaScript (no jQuery).Ben Sturmfels2021-08-191-17/+60
|
* Remove the slightly un-intuitive "Resolve" button on the report handling page.Rodrigo Martins2021-04-101-8/+6
| | | | | | | This button just uses JavaScript to reveal the subsequent actions. Better to show these upfront. Signed-off-by: Ben Sturmfels <ben@sturm.com.au>
* Unmute videos by default.Ben Sturmfels2020-04-241-2/+2
| | | | Fixes #5590.
* Merge branch 'transcoding_progress'Boris Bobrov2018-07-121-0/+27
|\ | | | | | | This probably broke stuff
| * Add change-video-resolution.js to start video-resolution-switcher pluginvijeth-aradhya2017-07-231-0/+27
| |
| * Revert "Add change-video-resolution.js to start the plugin"vijeth-aradhya2017-07-231-43/+0
| | | | | | | | This reverts commit e44c4569c7f7ac4b0b1c8470f38f7f1d09dd00f8.
| * Add change-video-resolution.js to start the pluginvijeth-aradhya2017-07-161-0/+43
| |
* | Merge remote-tracking branch 'gsoc2016/Subtitle-1'Boris Bobrov2018-07-101-0/+70
|\ \ | |/ |/|
| * Lightbox effect for imagessaksham11152016-07-191-0/+70
| |
* | Change all tabs to spaces in js fileBoris Bobrov2017-05-231-5/+5
| | | | | | | | It's bad to mix them
* | Change aria-text when state changesBoris Bobrov2017-04-031-4/+6
| |
* | Move audio html out of jsBoris Bobrov2017-04-021-10/+4
| |
* | edit_profile.html: Consistency in the width of input fieldsvijeth-aradhya2017-02-141-1/+1
| | | | | | | | | | | | | | | | | | The width of all the input fields in user profile edit form (also forms which wtforms render div function) is 100% Fixes #996 Signed-off-by: Andrew Browning <ayleph@thisshitistemp.com>
* | post_comment.js, media.html: Add AJAX for posting commentsvijeth-aradhya2017-01-291-0/+63
| | | | | | | | | | | | | | Stop reloading the page when a comment is posted which helps in not stopping the media being played (for example, a song) Fixes https://issues.mediagoblin.org/ticket/868
* | Use OSM tiles in Geolocation plugin #5466Olivier Mehani2016-09-181-4/+2
| | | | | | | | | | | | | | MapQuest recently disabled free-as-in-beer access to their map tiles, so let's switch to free-as-in-speech images. Signed-off-by: Olivier Mehani <shtrom@ssji.net>
* | Add documentation for header drop-down open/closed.Ben Sturmfels2016-09-121-9/+11
| |
* | Make the panel default to open and remember preference in local storage.Matt2016-08-161-2/+18
|/
* Fixing symlink to jquery.js in post-bower universeChristopher Allan Webber2015-02-171-1/+1
| | | | This commit sponsored by Alexander Slovesnik. Thanks!
* Remove html5slider Javascript helperAsheesh Laroia2015-02-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | This helper was originally added as a "polyfill" (backward-compatibility shim) for Firefox version 23 and older, so that <input type="range"> that audio.js uses could render nicely in those versions of Firefox. Chromium did not need this shim, and Firefox 23 (released on Aug 6, 2013) added support for this. Therefore, let us remove this dependency. By current metrics at caniuse.com <http://caniuse.com/#feat=input-range>, 88.14% of web users support this attribute. Opera Mini and old versions of Internet Explorer (6-8) are the only holdouts. Note also that the html5slider.js is uninterested in adding this to the npm package manager (or any package manager) repository <https://github.com/fryn/html5slider/issues/5>, meaning that keeping it in the mediagoblin extlib section would mean manual maintenance/updating by the GNU MediaGoblin team. This commit also removes GMG's use of the shim.
* Adding WAI-ARIA attributes to the header dropdown (Fix by Aleksej Serdjukov)Christopher Allan Webber2014-07-101-2/+2
| | | | | | This fixes issue #754 Thanks Aleksej!
* Merge remote-tracking branch 'refs/remotes/tilly-q/OPW-Moderation-Update'Christopher Allan Webber2013-10-071-0/+67
|\ | | | | | | | | | | | | Conflicts: mediagoblin/templates/mediagoblin/user_pages/user.html mediagoblin/tests/test_auth.py mediagoblin/tests/test_submission.py
| * Merge branch 'master' into OPW-Moderation-Updatetilly-Q2013-09-121-0/+13
| |\ | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py
| * | I've moved on to one of the last phases of my work! Now I'm just checking offtilly-Q2013-09-031-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | items from my last to-do list. The biggest change in this commit is that I made the moderation reports panel sortable via get request. I also added in page nu- mbers so that more than 10 reports can be viewed. I'm hoping to go from here to make a search page. Aside from that, there were only a few other changes I made this time. I fixed two bugs in my code. I copy-ed and pasted function mediagoblin.user_pages.views:media_preview_comment which I must've deleted ear- -lier in a merge. And I moved some of the javascript I was using in the modera- -tion templates into it's own seperate .js file. =============================================================================== Made the moderation reports panel view sortable =============================================================================== --\ mediagoblin/moderation/forms.py --\ mediagoblin/moderation/views.py --\ mediagoblin/templates/mediagoblin/moderation/report_panel.html --\ mediagoblin/templates/mediagoblin/moderation/user.html --| Made `<user> report history` into a link that automatically shows all open | and closed reports on <user>. =============================================================================== Grabbed some code from master that I accidentally deleted in a merge =============================================================================== --\ mediagoblin/user_pages/views.py =============================================================================== Moved javascript away from templates into its own file =============================================================================== --\ mediagoblin/static/js/setup_report_forms.js --\ mediagoblin/templates/mediagoblin/moderation/report.html --\ mediagoblin/templates/mediagoblin/moderation/user.html =============================================================================== Cleared trailing white space =============================================================================== --\ mediagoblin/templates/mediagoblin/moderation/media_panel.html --\ mediagoblin/moderation/tools.py --\ mediagoblin/templates/mediagoblin/meta/terms_of_service.html --\ mediagoblin/templates/mediagoblin/moderation/report_panel.html --\ mediagoblin/templates/mediagoblin/user_pages/media.html --\ mediagoblin/tests/test_modelmethods.py =============================================================================== Small fixes =============================================================================== --\ mediagoblin/templates/mediagoblin/moderation/report.html --| Fixed a link so that it points to the correct user page --\ mediagoblin/templates/mediagoblin/user_pages/media.html --| Fixed a bug that crashed this page when a guest visitted it (because | request.user is None)
* | | Merge remote-tracking branch 'refs/remotes/rodney757/auth_refactor'Christopher Allan Webber2013-09-191-25/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/auth/views.py mediagoblin/edit/forms.py mediagoblin/templates/mediagoblin/edit/edit_account.html
| * | | used template hooks instead of hardcoding basic_auth functionality into ↵Rodney Ewing2013-08-161-25/+0
| |/ / | | | | | | | | | templates
* | | Merge remote-tracking branch 'refs/remotes/rodney757/file_limits'Christopher Allan Webber2013-09-181-0/+45
|\ \ \ | |_|/ |/| | | | | | | | Conflicts: mediagoblin/db/migrations.py
| * | javascript limit validationRodney Ewing2013-08-261-0/+45
| |/
* | use urlgen and store it in a variableRodney Ewing2013-08-201-1/+1
| |
* | add the ability to mark all notifications read.Rodney Ewing2013-08-201-0/+13
|/
* change interval to 1000msRodney Ewing2013-08-071-1/+1
|
* Changed how the comment was encoded/read.Emily O'Leary2013-08-071-9/+10
| | | | | Fixed CSRF + Post with comment preview. Merged with latest master
* Added i18n to my javascript changes as per trac #417Emily O'Leary2013-08-071-1/+1
|
* Added comment preview functionality to user pages. It works by passing the ↵Emily O'Leary2013-08-071-0/+12
| | | | | | comment's value as a JSON string to a new handler that lives at /ajax/comment/preview. The query string is decoded, unquoted, and has its leading and trailing quotes removed to match the input that cleaned_markdown_conversion expects. It does this in real time with a 500ms lag by using a timer. Initially I tried the onChange handler but you need to lose focus for that to process. The javascript timer is only invoked if the add comment button is pressed. A request is only sent if the comment box is not empty and the current value is not the same as the last value.
* Merge remote-tracking branch 'refs/remotes/joar/notifications'Christopher Allan Webber2013-06-221-0/+36
|\ | | | | | | | | Conflicts: mediagoblin/db/migrations.py
| * New notifications, fixedJoar Wandborg2013-06-091-0/+18
| | | | | | | | | | | | - Remove notification-gem if notifications are null - Move comment-susbscription next to add-comment button - Add copyright header to notifications.js
| * New notificationsJoar Wandborg2013-06-091-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added request.notifications - Email configuration fixes - Set config_spec default SMTP port to `0` and switch to SSL/non-SSL default if `port == 0` - Added email_smtp_use_ssl configuration setting - Added migrations for notification tables - Added __repr__ to MediaComment(Mixin) - Added MediaComment.get_entry => MediaEntry - Added CommentSubscription, CommentNotification, Notification, ProcessingNotification tables - Added notifications.task to celery init - Fixed a bug in the video transcoder where pygst would hijack the --help argument. - Added notifications - views - silence - subscribe - routes - utility methods - celery task - Added half-hearted .active comment CSS style - Added quick JS to show header_dropdown - Added fragment template to show notifications in header_dropdown - Added fragment template to show subscribe/unsubscribe buttons on media/comment pages - Updated celery setup tests with notifications.task - Tried to fix test_misc tests that I broke - Added notification tests - Added and extended tests.tools fixtures - Integrated new notifications into media_home, media_post_comment views - Bumped SQLAlchemy dependency to >= 0.8.0 since we need polymorphic for the notifications to work
* | pdf: remove two unused files (we use pdf.js in an iframe, no need for our ↵Alon Levy2013-06-211-3615/+0
|/ | | | | | own bastard copy) Signed-off-by: Alon Levy <alevy@redhat.com>
* add pdf media typeAlon Levy2013-04-151-0/+3615
| | | | | | | | | | | | | | | | | | | | | | | The new media type supports pdf and a subset of media recognized by libreoffice via unoconv. Every document added goes through: * conversion to pdf with unoconv if not already a pdf * creation of thumbnail and medium sized image, and pdfinfo generates some information (even for unoconv produces docs - should fix this) Poppler (pdftocairo, pdfinfo) is used. http://poppler.freedesktop.org/ A working but uglified pdf.js integration exists, which is enabled by setting pdf.pdf_js=true mediagoblin_local.ini (disabled in mediagoblin.ini) Adds one test to the test_submission test suite, and another separate test_pdf suite. The tests are only run if media_types.pdf.processing.check_prerequisites passes, so the test suite will not require any extra package. TODO: make test suite say 'skipped' in that case instead of just 'ok' Signed-off-by: Alon Levy <alon@pobox.com>
* Added thingiview.js symlink, fixes webgl viewJoar Wandborg2013-03-101-0/+1
|
* Removing html5shiv for not complying with its own licenses and racismChristopher Allan Webber2013-02-261-1/+0
| | | | | | | | | | Issues of racism seem to have been resolved and removed from upstream, but make having this as a dependency somewhat uncomfortable: https://github.com/aFarkas/html5shiv/issues/91 Regardless, at the time of writing the project doesn't comply with its own license... it states to be dual licensed under MIT and GPLv2 but distributes neither of these licenses with its source.
* Merge remote-tracking branch 'refs/remotes/origin/533-new-dropdown'Christopher Allan Webber2013-01-171-0/+27
|\ | | | | | | | | | | Conflicts: mediagoblin/templates/mediagoblin/base.html mediagoblin/templates/mediagoblin/root.html
| * Add header_dropdown.jsJef van Schendel2012-12-041-0/+27
| |
* | Bump bundled video.js to v3.2.3 (#512)Sebastian Spaeth2012-12-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is nothing inherently wrong with the currently bundled version, but the last one was uploaded in March 2012 and there have been upstream releases since. So bump to the latest available release 3.2.3. Might help with the reported issue 512 of an unresponsive video player. Do note that the Flash fallback option is removed. If we decide this should be added it is easy to add it back. We still use our own customized theme. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* | Moving thingiview.js into extlib/Christopher Allan Webber2012-12-037-1773/+0
| |
* | disabled auto rotateAeva Ntsc2012-12-031-6/+10
| |
* | Added the thingiview.js library.Aeva Ntsc2012-12-031-0/+165
| |
* | Added the thingiview.js library.Aeva Ntsc2012-12-036-0/+1604
|/
* Pop up OpenStreetMap license on demand (#410)Sebastian Spaeth2012-11-161-7/+3
| | | | | | | | | | | | | | | | | Only a short blurb "see map license" in the small map which will pop up the full license text via jquery when clicked. Adapt the license text as recommended by OpenStreetMap http://www.openstreetmap.org/copyright and link there. The disadvantage is that this only works when Javascript is enabled, but as the map only works when Javascript is enabled in the first place, this should not be too much of a limitation. TODO: Our esteemed web designer needs to have a look at the desired color style for this. Right now, I simply placed it in the message_warning class. This might want fine-tuning. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Replace dropdown in top right with regular linksJef van Schendel2012-10-211-30/+0
|