Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Security upgrade grunt-contrib-jasmine from 0.8.0 to 1.0.0 #22

Open
wants to merge 5,585 commits into
base: stable
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
5585 commits
Select commit Hold shift + click to select a range
12a6ac9
Updated en-GB translation
Jul 24, 2015
3644d16
Updated es translation
Jul 24, 2015
83bde93
Updated pl translation
Jul 24, 2015
d927f3a
Updated ru translation
Jul 24, 2015
674d6e3
Post grades lti tools disabled when section selected
feathj Jul 22, 2015
1393c23
Updated en-AU translation
Jul 25, 2015
b6a93eb
Updated en-GB translation
Jul 25, 2015
54572f5
Updated pt translation
Jul 25, 2015
2acb23f
Updated sv translation
Jul 27, 2015
48c2fc3
Allow teacher to join students to groups in unpublished courses
javawizard Jul 22, 2015
1daa4df
bump moodle2cc version
maneframe Jul 24, 2015
cea4848
upgrade `brandable_css` so it uses less memory
Jul 23, 2015
f9f263d
incoming mail processing idempotency
JoelHough Jun 23, 2015
fe4ce7b
More Performance monitoring for IMP
mcwqy9 Jul 16, 2015
fa16b0c
handle running 'brandable_css' from within a symlinked dir
Jul 27, 2015
8bc2ac0
tell browsers they can cache can assets for a year
Jul 23, 2015
b4b1658
rename "CDN" ruby module to "Cdn"
Jul 27, 2015
7c92bb3
add checkbox for excusing assignments in srgb
dyro Jul 23, 2015
2fff9d2
Ensure students get an array when no submissions
yenif Jul 23, 2015
b2ab545
Allow teacher to join students to groups in unpublished courses
javawizard Jul 22, 2015
4f1b7f3
Lessens data given when a student answers a question via the API
ryanmt Jul 27, 2015
568be3b
Lessens data given when a student answers a question via the API
ryanmt Jul 27, 2015
d1d0263
Updated nb translation
Jul 28, 2015
e388210
fix moodle quiz question points possible importing
maneframe Jul 27, 2015
0d406cc
theme editor - fix undo image error
Jul 22, 2015
1c16737
Theme Editor: Fix threading issues in preview progress updates
Jul 28, 2015
7a4e921
Revert "Remove Save & Publish button from Scheduler Edit Page"
Jul 28, 2015
482604e
Add Upload CSS/JS tab to Theme Editor
junyper Jul 17, 2015
0a4813c
fix moodle quiz question points possible importing
maneframe Jul 27, 2015
2f8e97d
Sanitize quiz answer comments html
yenif Jul 28, 2015
19012cc
moderate_grades permission
jstanley0 Jul 28, 2015
619d8b2
Sanitize quiz answer comments html
yenif Jul 28, 2015
eb20da0
make sure 'ruby-progressbar' gem is installed
Jul 29, 2015
5758f4d
have s3Uploader upload svgs with correct content-type
Jul 29, 2015
289e8fe
Escape text box val before inserting into tinyMCE
yenif Jul 29, 2015
dc27779
Long filename overflows the Move File window
serikjensen Jul 23, 2015
2d4e328
Escape text box val before inserting into tinyMCE
yenif Jul 29, 2015
902f402
themeditor: fix preview in ie10 & 11
Jul 29, 2015
40cced1
Prevent colors defaulting to 'transparent' and fix validation in FF
junyper Jul 30, 2015
de31671
Add ability to get grading standards via api
Jul 23, 2015
5baf6ab
Revert "Make it so students see "My Grades" and teachers see "Gradebo…
junyper Jul 29, 2015
94077a3
High-contrast mode on primary button
Jul 30, 2015
a492f5d
Fixes issue with updating tab via api
Jul 29, 2015
ccc478c
theme editor errors work with screenreader
Jul 29, 2015
a26813f
theme editor: only allow png apple-touch-icons
Jul 28, 2015
00621f2
speed up 'gulp rev' by only revving files we need to
Jul 23, 2015
e16cd78
VO - Icon should be ignored
serikjensen Jul 28, 2015
ab6df67
remove k12 css variant since we don't use it for now
Jul 31, 2015
560df8a
Theme editor error tooltip cutoff
Jul 31, 2015
5b162a9
Add support for lookup by sis ids in the sis assignment API
wbhumphrey Jul 23, 2015
2e8ef84
Theme editor preview area
Jul 22, 2015
439c280
"Switch to Individual View" should not be next to breadcrumbs
serikjensen Jul 24, 2015
447de0e
make sure plugin javascript bundles make it to CDN
Aug 3, 2015
87c5036
Fixes for theme editor IE 10 issues
junyper Aug 3, 2015
b293ba4
add for to labels and aria-invalid to theme editor
Jul 31, 2015
2c2c4a8
prevent moodle quiz and bank question identifier collisions
maneframe Jul 31, 2015
ef1bab9
Updated ar translation
Aug 4, 2015
d0cb386
Updated da translation
Aug 4, 2015
1b3d34e
Updated es translation
Aug 4, 2015
5c8f6fa
Updated nl translation
Aug 4, 2015
1f5d8a3
Updated pl translation
Aug 4, 2015
28389aa
Updated pt-BR translation
Aug 4, 2015
70e44f3
Updated ru translation
Aug 4, 2015
ec446d6
Updated sv translation
Aug 4, 2015
fb0fc63
Updated zh translation
Aug 4, 2015
ae491bd
Updated zh_Hant translation
Aug 4, 2015
4cf9ccb
prevent moodle quiz and bank question identifier collisions
maneframe Jul 31, 2015
141e7f0
wrap shard cache clear in after_transaction_commit
ccutrer Jul 30, 2015
7ee751c
Fixes issue with unlock_date for modules course copy
Jul 31, 2015
a345e53
Fix migration issue with sharding
Aug 4, 2015
6c5175d
NVDA - Global nav options have extraneous 'link' announced
serikjensen Jul 30, 2015
f166be6
treesame commit of origin/stable/2015-08-08
roor0 Aug 8, 2015
34cf2c7
treesame commit of origin/stable/2015-07-18
roor0 Aug 8, 2015
5c3479f
Updated ar translation
Aug 5, 2015
4cfec0f
export ASSET_HOST to window.ENV so handlebars css loads
Aug 8, 2015
fedff64
treesame commit of origin/stable/2015-08-08
roor0 Aug 8, 2015
50d4e04
treesame commit of origin/stable/2015-08-08
roor0 Aug 8, 2015
739d9fa
only check for user_is_instructor? on courses
roor0 Aug 8, 2015
3d33863
updated en.yml
maneframe Aug 10, 2015
b12305e
show original error in switchman create_new_shard failure
maneframe Aug 10, 2015
81dba3b
rollback swithcman to 1.2.37
roor0 Aug 10, 2015
ee67db2
bump moodle2cc version
codekitchen Aug 4, 2015
00a5a86
show original error in switchman create_new_shard failure
maneframe Aug 10, 2015
e2449fe
switch to fork of nokogiri
codekitchen Aug 4, 2015
006af62
switch to ratom-nokogiri gem
codekitchen Aug 4, 2015
477e40b
Revert "rails4: fix activerecord all_models"
roor0 Aug 10, 2015
71bf9b6
treesame commit of origin/stable/2015-08-08
roor0 Aug 10, 2015
36f7bdc
treesame commit of origin/stable/2015-08-29
roor0 Aug 10, 2015
66c6594
Make course checklist status accurate
Aug 4, 2015
62c8abf
Global includes checkbox isn't linked to its label
junyper Aug 5, 2015
a87ffb3
Consider section end date in quiz eligibility.
Jul 2, 2015
338739e
don't reload files when unnecessary in AR#all_models
maneframe Aug 11, 2015
3738098
Fix placement of term date in course navigation
Aug 10, 2015
939ecfc
record errors on the shard they are for
ccutrer Aug 11, 2015
b8d9a8d
record errors on the shard they are for
ccutrer Aug 11, 2015
12eb15c
don't load the developer key just to log its ID
ccutrer Aug 12, 2015
c111016
avoid querying default shard for notifications
ccutrer Aug 12, 2015
7484644
don't load the developer key just to log its ID
ccutrer Aug 12, 2015
91ea0f3
avoid querying default shard for notifications
ccutrer Aug 12, 2015
26a8c63
bump ruby-saml-mod
ccutrer Aug 12, 2015
d7f9516
don't notify observers when students aren't notified
maneframe Aug 11, 2015
d316071
send exception type as a tag
codekitchen Aug 11, 2015
ba80d77
Use ENV.current_user_id instead of $('#identity .user_id')
Aug 3, 2015
5c68ad6
Increments cache key for modules page
claydiffrient Aug 13, 2015
256b14d
show course_settings_sub_navigation lti tools with read_as_admin
maneframe Aug 13, 2015
c62f5b2
bump nokogiri
codekitchen Aug 13, 2015
a3fbab7
don't notify observers when students aren't notified
maneframe Aug 11, 2015
af09762
Use ENV.current_user_id instead of $('#identity .user_id')
Aug 3, 2015
9b767cd
Increments cache key for modules page
claydiffrient Aug 13, 2015
870913e
show course_settings_sub_navigation lti tools with read_as_admin
maneframe Aug 13, 2015
f9f4a57
bump ruby-saml-mod
ccutrer Aug 3, 2015
1e4a989
bump moodle2cc version
codekitchen Aug 4, 2015
77fc7b2
switch to fork of nokogiri
codekitchen Aug 4, 2015
d4841e5
switch to ratom-nokogiri gem
codekitchen Aug 4, 2015
1e8211e
bump ruby-saml-mod
ccutrer Aug 12, 2015
ced0890
bump nokogiri
codekitchen Aug 13, 2015
f8e5339
fix preload notification on stream item assets
ccutrer Aug 13, 2015
6862c75
fix logins list for explicit saml provider
ccutrer Aug 14, 2015
ebd7169
rewrite activity stream summary for performance
maneframe Aug 12, 2015
74224a5
don't fetch site_admin role overrides for non-site_admin roles
maneframe Aug 12, 2015
0384408
fix preload notification on stream item assets
ccutrer Aug 13, 2015
7ed2f6b
fix logins list for explicit saml provider
ccutrer Aug 14, 2015
4a47b4e
parse date strings using moment
Aug 5, 2015
3c315ef
Add GET endpoint for Quiz Question Groups
Jul 30, 2015
1e2051a
Add sis_account_id to sub-account creation api
Aug 5, 2015
14d7bfd
localize values in datetime picker fields
lukfugl Aug 11, 2015
0f02c9f
don't put "show and hide courses menu" on user files
jstanley0 Aug 13, 2015
b03de93
add armenian language
roor0 Aug 14, 2015
d37f015
fix activity_stream_summary for announcements
maneframe Aug 17, 2015
6deb695
force Account.find_cached to always cache relative to the birth shard
ccutrer Aug 17, 2015
7dfd625
preload global announcement account info prior to caching
ccutrer Aug 17, 2015
64eff44
force Account.find_cached to always cache relative to the birth shard
ccutrer Aug 17, 2015
319a954
preload global announcement account info prior to caching
ccutrer Aug 17, 2015
dc55a22
treesame commit of origin/stable/2015-08-08
roor0 Aug 18, 2015
362f7d5
treesame commit of origin/stable/2015-08-29
roor0 Aug 18, 2015
4a18a0e
don't fetch site_admin role overrides for non-site_admin roles
maneframe Aug 12, 2015
2280a2b
preload enrollment dates when selecting participating users in a course
ccutrer Aug 17, 2015
c77bbb1
preload enrollment dates when selecting participating users in a course
ccutrer Aug 17, 2015
2bc9fc7
treesame commit of origin/stable/2015-08-08
roor0 Aug 18, 2015
a80e190
treesame commit of origin/stable/2015-08-08
roor0 Aug 18, 2015
584eb9f
rewrite activity stream summary for performance
maneframe Aug 12, 2015
0e3c75f
fix activity_stream_summary for announcements
maneframe Aug 17, 2015
730c9ef
don't generate collaboration doc in transaction
JoelHough Aug 14, 2015
edb36a9
fix Account.find_cached
ccutrer Aug 19, 2015
ce1317f
Revert "fix activity_stream_summary for announcements"
ccutrer Aug 19, 2015
2003a02
Revert "rewrite activity stream summary for performance"
ccutrer Aug 19, 2015
3c03e5c
speedgrader external urls can now open inline or in a new tab
ktgeek Aug 11, 2015
54bb741
don't generate collaboration doc in transaction
JoelHough Aug 14, 2015
6e667aa
fix Account.find_cached
ccutrer Aug 19, 2015
91c4c6f
move thumbnail resizing out of transaction
maneframe Aug 17, 2015
821538e
determine recipients and queue notifications _after_ transaction commit
ccutrer Aug 19, 2015
6559eef
remove duplicate section dropdown
Aug 12, 2015
a81a613
filter assignments by overrides when necessary
djbender Jul 8, 2015
8ee3099
treesame commit of origin/stable/2015-08-08
ccutrer Aug 20, 2015
e8c6536
rails4: set config.log_level on boot
maneframe Aug 19, 2015
1163578
fix activity_stream_summary for cross-shard users
maneframe Aug 19, 2015
4c301d6
move thumbnail resizing out of transaction
maneframe Aug 17, 2015
9587a9a
fixes google drive authorization
sdb1228 Aug 19, 2015
e78b922
determine recipients and queue notifications _after_ transaction commit
ccutrer Aug 19, 2015
117e18d
Updated en-AU translation
Aug 11, 2015
ff43118
Updated en-GB translation
Aug 11, 2015
5754874
Updated en-AU translation
Aug 12, 2015
b475e43
Updated es translation
Aug 12, 2015
ccbac09
Updated nl translation
Aug 12, 2015
02904ad
Updated sv translation
Aug 12, 2015
107ac0b
Updated zh translation
Aug 12, 2015
3d1a236
Updated ar translation
Aug 13, 2015
848c21b
Updated da translation
Aug 13, 2015
996eea9
Updated de translation
Aug 13, 2015
1c9b1ab
Updated en-AU translation
Aug 13, 2015
0db0e17
Updated es translation
Aug 13, 2015
206d366
Updated fr translation
Aug 13, 2015
35509a4
Updated ru translation
Aug 13, 2015
fbf6868
Updated tr translation
Aug 13, 2015
c43e3a3
Updated ar translation
Aug 14, 2015
021b534
Updated da translation
Aug 14, 2015
0f1de52
Updated en-GB translation
Aug 14, 2015
68190f9
Updated ru translation
Aug 14, 2015
48061b0
Updated zh_Hant translation
Aug 14, 2015
e4cd3e7
Updated ar translation
Aug 15, 2015
451da01
Updated ja translation
Aug 15, 2015
0fd0a43
Updated pt translation
Aug 16, 2015
ca4245f
Updated nb translation
Aug 17, 2015
d10e4af
Updated es translation
Aug 18, 2015
bb1484e
Updated hy translation
Aug 18, 2015
de832e2
Updated tr translation
Aug 19, 2015
68b623d
Updated ar translation
Aug 21, 2015
3e52151
Updated da translation
Aug 21, 2015
03acf83
Updated hy translation
Aug 21, 2015
0758515
Updated ja translation
Aug 21, 2015
9870add
Updated nb translation
Aug 21, 2015
125b5e3
Updated sv translation
Aug 21, 2015
79ffde6
Updated zh translation
Aug 21, 2015
fc47cd0
Updated zh_Hant translation
Aug 21, 2015
ae54210
fixes google drive authorization
sdb1228 Aug 19, 2015
bf79820
add account setting for requiring terms of use
Aug 19, 2015
620a9cd
don't recurse on unfudging of moment parsed date
lukfugl Aug 20, 2015
3614a52
add account setting for requiring terms of use
Aug 19, 2015
fe48980
treesame commit of origin/stable/2015-08-08
ccutrer Aug 21, 2015
1f09f25
Updated ar translation
Aug 22, 2015
3f30e95
Updated de translation
Aug 22, 2015
f7e1e46
Updated en-AU translation
Aug 22, 2015
5bf1caa
Updated en-GB translation
Aug 22, 2015
2c047b7
Updated es translation
Aug 22, 2015
0a8a23c
Updated fr translation
Aug 22, 2015
1893d66
Updated hy translation
Aug 22, 2015
2c2d892
Updated ja translation
Aug 22, 2015
ed3378d
Updated nl translation
Aug 22, 2015
f5092c1
Updated pl translation
Aug 22, 2015
c7308d6
Updated pt translation
Aug 22, 2015
7a508c9
Updated pt-BR translation
Aug 22, 2015
b9d4b13
Updated ru translation
Aug 22, 2015
51f591a
Updated tr translation
Aug 22, 2015
d02db31
Updated zh translation
Aug 22, 2015
7dfa001
Updated zh_Hant translation
Aug 22, 2015
65b7ac1
Updated pl translation
Aug 24, 2015
9a788d6
catch URI::Error instead of URI::InvalidURIError
maneframe Jul 24, 2015
d0a254f
don't leave unresolved link placeholders on migration failure
maneframe Aug 3, 2015
5445f01
treesame commit of origin/stable/2015-08-29
roor0 Aug 25, 2015
edb5242
move new teacher form to marketing site
roor0 Aug 20, 2015
69a4320
add skip_registration param to create user action
Jul 30, 2015
8f1bc80
Updated nb translation
Aug 25, 2015
9f2c081
New UI: show the "courses" menu item all the time
Aug 6, 2015
496b9cc
don't load every student in course for enrollment permissions
maneframe Aug 25, 2015
9462bf3
don't include account CSS on "Updated Terms" page
lukfugl Aug 24, 2015
44ef2d5
don't lock people out after failed_login_attempts
roor0 Aug 21, 2015
5261651
Handles section end_at extensions in Quizzes
ryanmt Jul 22, 2015
3a552f3
Updated nb translation
Aug 27, 2015
5619fb0
treesame commit of origin/stable/2015-08-29
mcwqy9 Aug 27, 2015
e8f15f7
treesame commit of origin/stable/2015-08-08
roor0 Aug 27, 2015
40f90cf
treesame commit of origin/stable/2015-08-29
roor0 Aug 27, 2015
496ec72
Bring back elementpath for tinyMCE, but hide in UI
Aug 27, 2015
9cdc062
treesame commit of origin/stable/2015-08-29
mcwqy9 Aug 27, 2015
b8b3559
treesame commit of origin/stable/2015-08-08
roor0 Aug 28, 2015
a46b327
Updated pt-BR translation
Aug 28, 2015
a84443d
rails 4: only load pg types we care about
ccutrer Aug 27, 2015
6db2bc8
Takes out CSS for hiding html in TinyMCE
Aug 28, 2015
ab4fd08
don't blow up if there are no assignments
roor0 Aug 29, 2015
75cfb9b
don't blow up if there are no assignments again
roor0 Aug 29, 2015
7dd4faa
Fixes quiz taking button state on no remaining attempts
ryanmt Aug 27, 2015
4f85020
don't check for submissions when there is no assignment
roor0 Aug 29, 2015
caf5d63
only render quiz restriction checks when trying to take the quiz
simonista Aug 29, 2015
d6c675a
treesame commit of origin/stable/2015-08-29
roor0 Aug 30, 2015
869e0da
treesame commit of origin/stable/2015-08-29
roor0 Aug 30, 2015
02e1155
set respondus lockdown browser high security only when taking quiz
maneframe Aug 31, 2015
0222b7e
Updated tr translation
Aug 31, 2015
f9fa071
pass user to gradebook.csv background job
cmatheson Aug 26, 2015
c856b5f
Fixes issue where some students couldn't be removed from courses
Aug 31, 2015
0af2faf
treesame commit of origin/stable/2015-08-29
roor0 Sep 1, 2015
57f796c
fix: client_apps/canvas_quizzes/package.json to reduce vulnerabilities
snyk-bot Mar 25, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Gemfile.d/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
gem 'active_model-better_errors', '1.6.7', require: 'active_model/better_errors'
gem 'dynamic_form', '1.1.4', require: false
gem 'rails-patch-json-encode', '0.0.1'
gem 'switchman', '1.2.39'
gem 'switchman', '1.2.40'
gem 'folio-pagination', '0.0.9', require: 'folio/rails'
# for folio, see the folio README
gem 'will_paginate', '3.0.7', require: false
Expand Down Expand Up @@ -62,7 +62,7 @@
gem 'subexec', '0.0.4', require: false
gem 'multi_json', '1.10.1'
gem 'netaddr', '1.5.0', require: false
gem 'nokogiri', '1.6.6.2', require: false
gem 'nokogiri', '1.6.6.2.20150813143452', require: false, github: 'codekitchen/nokogiri', ref: 'd47e53f885'
# oauth gem, with rails3 fixes rolled in
gem 'oauth-instructure', '0.4.10', require: false
gem 'oauth2', '1.0.0', require: false
Expand All @@ -73,14 +73,14 @@
gem 'stackprof', '0.2.7', require: false
gem 'rake', '10.4.2'
gem 'rdoc', '3.12'
gem 'ratom', '0.9.0', require: false
gem 'ratom-nokogiri', '0.10.3', require: false
gem 'rdiscount', '1.6.8', require: false
gem 'ritex', '1.0.1', require: false

gem 'rotp', '1.6.1', require: false
gem 'net-ldap', '0.10.1', require: false
gem 'ruby-duration', '3.2.0', require: false
gem 'ruby-saml-mod', '0.2.6'
gem 'ruby-saml-mod', '0.2.7'
gem 'rubycas-client', '2.3.9', require: false
gem 'rubyzip', '1.1.1', require: 'zip'
gem 'zip-zip', '0.2' # needed until plugins use the new namespace
Expand Down
16 changes: 8 additions & 8 deletions app/coffeescripts/calendar/EditAssignmentDetails.coffee
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
define [
'jquery'
'timezone'
'compiled/calendar/commonEventFactory'
'jst/calendar/editAssignment'
'jst/calendar/editAssignmentOverride'
'jst/calendar/genericSelectOptions'
'jquery.instructure_date_and_time'
'jquery.instructure_forms'
'jquery.instructure_misc_helpers'
], ($, commonEventFactory, editAssignmentTemplate, editAssignmentOverrideTemplate, genericSelectOptionsTemplate) ->
], ($, tz, commonEventFactory, editAssignmentTemplate, editAssignmentOverrideTemplate, genericSelectOptionsTemplate) ->

class EditAssignmentDetails
constructor: (selector, @event, @contextChangeCB, @closeCB) ->
Expand Down Expand Up @@ -85,15 +86,14 @@ define [
@$form.find(".more_options_link").attr('href', moreOptionsUrl)

setupTimeAndDatePickers: () =>
@$form.find(".datetime_field").datetime_field()

startDate = @event.startDate()
endDate = @event.endDate()

$field = @$form.find(".datetime_field")
$field.datetime_field()
widget = $field.data('instance')
startDate = $.unfudgeDateForProfileTimezone(@event.startDate())
if @event.allDay
@$form.find(".datetime_field").val(startDate.toString('MMM d, yyyy')).change()
widget.setDate(startDate)
else if startDate
@$form.find(".datetime_field").val(startDate.toString('MMM d, yyyy h:mmtt')).change()
widget.setDatetime(startDate)

formSubmit: (e) =>
e.preventDefault()
Expand Down
4 changes: 2 additions & 2 deletions app/coffeescripts/handlebars_helpers.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ define [
# stored elsewhere).

# expects: anything that $.datetimeString can handle
datetimeFormatted : (datetime, localized=true) ->
$.datetimeString(datetime, {localized: localized})
datetimeFormatted : (datetime) ->
$.datetimeString(datetime)

# Strips the time information from the datetime and accounts for the user's
# timezone preference. expects: anything tz() can handle
Expand Down
2 changes: 1 addition & 1 deletion app/coffeescripts/react_files/components/FilesApp.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ define [
header {},
h1 {className: 'screenreader-only'},
I18n.t('files_heading', "Files")
if ENV.use_new_styles
if ENV.use_new_styles and contextType == 'courses'
div {className: 'ic-app-nav-toggle-and-crumbs ic-app-nav-toggle-and-crumbs--files'},
button {
className:'Button Button--link Button--small ic-app-course-nav-toggle',
Expand Down
10 changes: 0 additions & 10 deletions app/coffeescripts/util/parseDatetime.coffee

This file was deleted.

2 changes: 2 additions & 0 deletions app/coffeescripts/views/DiscussionTopics/EditView.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ htmlEscape, DiscussionTopic, Announcement, Assignment, $, preventDefault, Missin

getFormData: ->
data = super
for dateField in ['last_reply_at', 'posted_at', 'delayed_post_at']
data[dateField] = $.unfudgeDateForProfileTimezone(data[dateField])
data.title ||= I18n.t 'default_discussion_title', 'No Title'
data.discussion_type = if data.threaded is '1' then 'threaded' else 'side_comment'
data.podcast_has_student_posts = false unless data.podcast_enabled is '1'
Expand Down
5 changes: 3 additions & 2 deletions app/coffeescripts/views/conferences/EditConferenceView.coffee
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
define [
'jquery'
'underscore'
'timezone'
'compiled/views/DialogBaseView'
'compiled/util/deparam'
'jst/conferences/editConferenceForm'
'jst/conferences/userSettingOptions'
'compiled/behaviors/authenticity_token'
], ($, _, DialogBaseView, deparam, template, userSettingOptionsTemplate, authenticity_token) ->
], ($, _, tz, DialogBaseView, deparam, template, userSettingOptionsTemplate, authenticity_token) ->

class EditConferenceView extends DialogBaseView

Expand Down Expand Up @@ -100,7 +101,7 @@ define [
when 'date_picker'
optionObj['isDatePicker'] = true
if(currentVal)
optionObj['value'] = tz.format(currentVal, "%b %-d, %Y %l:%M%P")
optionObj['value'] = tz.format(currentVal, 'date.formats.full_with_weekday')
else
optionObj['value'] = currentVal
break
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ define [
json.url = "#{ENV.COURSE_ROOT_URL}/users/#{@model.get('id')}"
json.isObserver = @model.hasEnrollmentType('ObserverEnrollment')
json.isPending = @model.pending(@model.currentRole)
json.canRemoveStudents = ENV.permissions.manage_students and _.all @model.get('enrollments'), (e) -> !e.sis_course_id
json.canEditSections = not _.isEmpty @model.sectionEditableEnrollments()
json.canLinkStudents = json.isObserver && !ENV.course.concluded
json.canViewLoginIdColumn = ENV.permissions.manage_admin_users or ENV.permissions.manage_students
Expand Down
27 changes: 17 additions & 10 deletions app/coffeescripts/widget/DatetimeField.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@ define [
'i18n!datepicker'
'jquery'
'timezone'
'compiled/util/parseDatetime'
'jquery.instructure_date_and_time' # $.unfudgeDateForProfileTimezone, $.midnight
], (I18n, $, tz, parseDatetime) ->
], (I18n, $, tz) ->

# translate a strftime style format string (guaranteed to only use %d, %-d,
# %b, and %Y, though in dynamic order) into a datepicker style format string
datepickerFormat = (format) ->
format.replace(/%Y/, 'yy').replace(/%b/, 'M').replace(/%-?d/, 'd')

# adds datepicker and suggest functionality to the specified $field
class DatetimeField
datepickerDefaults:
constrainInput: false
dateFormat: 'M d, yy'
dateFormat: datepickerFormat(I18n.t('#date.formats.medium'))
showOn: 'button'
buttonText: '<i class="icon-calendar-month"></i>'
buttonImageOnly: false
Expand All @@ -19,7 +23,9 @@ define [
prevText: I18n.t('prevText', 'Prev') # title text for previous month icon
nextText: I18n.t('nextText', 'Next') # title text for next month icon
monthNames: I18n.lookup('date.month_names')[1..] # names of months
monthNamesShort: I18n.lookup('date.abbr_month_names')[1..] # abbreviated names of months
dayNames: I18n.lookup('date.day_names') # title text for column headings
dayNamesShort: I18n.lookup('date.abbr_day_names') # title text for column headings
dayNamesMin: I18n.lookup('date.datepicker.column_headings') # column headings for days (Sunday = 0)
firstDay: I18n.t('first_day_index', '0') # first day of the week (Sun = 0)
showMonthAfterYear: I18n.t('#date.formats.medium_month')[0:1] is "%Y" # "month year" or "year month"
Expand Down Expand Up @@ -96,13 +102,13 @@ define [

# public API
setDate: (date) =>
@setFormattedDatetime(date, 'MMM d, yyyy')
@setFormattedDatetime(date, 'date.formats.medium')

setTime: (date) =>
@setFormattedDatetime(date, 'h:mmtt')
@setFormattedDatetime(date, 'time.formats.tiny')

setDatetime: (date) =>
@setFormattedDatetime(date, 'MMM d, yyyy h:mmtt')
@setFormattedDatetime(date, 'date.formats.full')

# private API
setFromValue: =>
Expand Down Expand Up @@ -139,22 +145,23 @@ define [

parseValue: ->
value = @normalizeValue(@$field.val())
@fudged = parseDatetime(value)
@datetime = $.unfudgeDateForProfileTimezone(@fudged)
@datetime = tz.parse(value)
@fudged = $.fudgeDateForProfileTimezone(@datetime)
@showTime = @alwaysShowTime or (@allowTime and not $.midnight(@datetime))
@blank = not value
@invalid = not @blank and @datetime == null

setFormattedDatetime: (datetime, format) ->
if datetime
@blank = false
@datetime = datetime
@fudged = $.fudgeDateForProfileTimezone(@datetime)
@$field.val(@fudged.toString(format))
@$field.val(tz.format(@datetime, format))
else
@blank = true
@datetime = null
@fudged = null
@$field.val("")
@blank = @datetime is null
@invalid = false
@showTime = @alwaysShowTime or (@allowTime and not $.midnight(@datetime))
@update()
Expand Down
Loading