Commit ab45ce19 by David Baumgold

Merge pull request #1335 from edx/db/requirejs-use-domReady

use domReady rather than $.ready()
parents 55925110 061e046e
...@@ -7,9 +7,7 @@ ...@@ -7,9 +7,7 @@
<%block name="jsextra"> <%block name="jsextra">
<script type="text/javascript"> <script type="text/javascript">
require(['jquery', 'jquery.form'], function($) { require(["domReady!", "jquery", "jquery.form"], function(doc, $) {
$(document).ready(function () {
// showing/hiding creation rights UI // showing/hiding creation rights UI
$('.show-creationrights').click(function(e){ $('.show-creationrights').click(function(e){
(e).preventDefault(); (e).preventDefault();
...@@ -30,7 +28,6 @@ require(['jquery', 'jquery.form'], function($) { ...@@ -30,7 +28,6 @@ require(['jquery', 'jquery.form'], function($) {
$('#request-coursecreator-submit').click(function(e){ $('#request-coursecreator-submit').click(function(e){
$(this).toggleClass('is-disabled is-submitting').find('.label').text('Submitting Your Request'); $(this).toggleClass('is-disabled is-submitting').find('.label').text('Submitting Your Request');
}); });
});
}); });
</script> </script>
</%block> </%block>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment