html file editing fixes fixes #9785

- can open the dialog multiple times without
  getting into a strange state
- can save files from the editor

Change-Id: I8dd0eea66a61e3fcfb5e215714493c2bab1e1f8b
Reviewed-on: https://gerrit.instructure.com/12766
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
pass user.id to path helper instead of user

The user was getting marshalled when caching the profile tabs.

Test plan:
  * Go to your profile page on an account with profiles enabled
  * The profile tab should still work

Change-Id: I60b4882859396fd3e9cc63416b75ae831f7fe4f0
Reviewed-on: https://gerrit.instructure.com/12804
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
refactor jobs admin functionality to not use AR queries

A set of class functions were added to Delayed::Backend::ActiveRecord
for all the querying a updating functionality that the jobs admin needs,
so that no direct ActiveRecord queries are needed. The /jobs UI is
refactored to use these new functions.

There are a few differences in behavior: The search isn't a combined
wildcard search anymore. Instead, new "flavors" were added to the
drop-down for strand, tag, and ID. The search box searches only the
selected attribute, and it's exact match now.

Specs are being updated to use these new functions as well. Eventually,
no direct AR queries will be done against Jobs anywhere, so that non-AR
jobs backends are possible.

Also as part of this, all jobs require a queue now. Passing nil for the
queue will use the default of Delayed::Worker.queue.

test plan: Load /jobs, and verify that it works as before except where
there are differences as described above.
  * Selecting flavors of jobs lists only those jobs.
  * Searching by ID, strand or tag works.
  * The hold/unhold/delete actions work in the various combinations of
    filtering/searching.
  * Linking to an individual job still works (though the query string
    has changed so old links don't work)
  * Running jobs and list of popular tags still works as expected.

Change-Id: Iffd5b8c7b3d6e4b128792a9dee7b97c6dfb251dc
Reviewed-on: https://gerrit.instructure.com/12632
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
make allow/deny flash buttons for media comments clickable.

fixes #9740

a bug was introduced in chrome 21 for mac that makes the
allow/deny buttons in flash objects unclickable if the parent
object is given a non-integer position in the DOM.

this fix loops through all flash objects in the media comments
popup and adjusts their position in the DOM by the difference
between their current position and the rounded value of that
position.

test plan:
  * enable media comments on an account;
  * log in as an admin or teacher and visit a course's
    announcements page;
  * click the new announcement button, and then the record/
    upload media button in tinymce;
  * verify that you can click the "allow" button inside of the
    flash content.

Change-Id: I3bf4f10f728bfde3e84f06754bf5baa9722335ff
Reviewed-on: https://gerrit.instructure.com/12756
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
set max-width for page view table url column

fixes #9743

set a max-width and ellipsis overflow so that long urls in this column doesn't
push all the other columns off the edge of the page.

test plan:
- visit a really long canvas url (a good candidate is clicking 'more options'
  when creating an assignment)
- go to the users page (/users/:id)
- you should see the long url, as well as all the other columns
- check in all major browsers

Change-Id: I96dd25f3efcbbca6eb2036f10b4491b9ac1ae049
Reviewed-on: https://gerrit.instructure.com/12750
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
don't handle change AND click event for element_toggler checkbox

Change-Id: I95b2c431b8c9f80258b3abc56a5a954c3aafa54e
Reviewed-on: https://gerrit.instructure.com/12797
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jake Sorce <jake@instructure.com>
increase late time padding on quizzes in gradebook2

adjusted up to a minute for slow server responses
when a quiz is submitted

fixes #7882

Change-Id: Id607fd76ce1e490d66799c54d61419696ed31218
Reviewed-on: https://gerrit.instructure.com/12818
Reviewed-by: Jon Jensen <jon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
fix anonymous quiz statistics csv fixes #9841

test plan
 * create quiz statistics_csv for anonymous survey
 * results should not include user information

Change-Id: I1c7c9047fde337b7af0ae8f7bae6f0abb70a76e3
Reviewed-on: https://gerrit.instructure.com/12822
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
remove sort_by options from api docs for files/folders

because position is sadness

refs #brian

Change-Id: Ia1edee57a02305de49971d23205b2d1295c5bdf8
Reviewed-on: https://gerrit.instructure.com/12816
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
put some padding on calendar events

Change-Id: I0332b71ec68b71aeda64ed24d29843e832d65d54
Reviewed-on: https://gerrit.instructure.com/12780
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Joe Tanner <joe@instructure.com>