From 4e7d931d7e29aa376ca55c699d3f7a8668f72ef1 Mon Sep 17 00:00:00 2001 From: Tom Giannattasio Date: Tue, 4 Dec 2012 11:00:28 -0500 Subject: [PATCH] removed new course button on click to prevent multiple instantiations --- cms/static/js/base.js | 2 ++ cms/static/sass/_base.scss | 8 +++++--- cms/static/sass/_courseware.scss | 5 +++++ cms/templates/overview.html | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/cms/static/js/base.js b/cms/static/js/base.js index 79d83a466e..2efc4c6b4a 100644 --- a/cms/static/js/base.js +++ b/cms/static/js/base.js @@ -588,6 +588,8 @@ function hideToastMessage(e) { function addNewSection(e, isTemplate) { e.preventDefault(); + $(e.target).hide(); + var $newSection = $($('#new-section-template').html()); var $cancelButton = $newSection.find('.new-section-name-cancel'); $('.new-courseware-section-button').after($newSection); diff --git a/cms/static/sass/_base.scss b/cms/static/sass/_base.scss index 7f5dcacf8b..4696638af4 100644 --- a/cms/static/sass/_base.scss +++ b/cms/static/sass/_base.scss @@ -26,7 +26,8 @@ a { h1 { float: left; font-size: 28px; - margin: 36px 6px; + font-weight: 300; + margin: 24px 6px; } .waiting { @@ -345,8 +346,9 @@ body.show-wip { } .new-button { - @include grey-button; - padding: 20px 0; + @include blue-button; + font-size: 13px; + padding: 8px 20px 10px; text-align: center; &.big { diff --git a/cms/static/sass/_courseware.scss b/cms/static/sass/_courseware.scss index 23024f74e4..73b55618b6 100644 --- a/cms/static/sass/_courseware.scss +++ b/cms/static/sass/_courseware.scss @@ -8,6 +8,7 @@ input.courseware-unit-search-input { } + .courseware-section { position: relative; background: #fff; @@ -139,6 +140,10 @@ input.courseware-unit-search-input { } } + .section-name-form { + margin-bottom: 15px; + } + .section-name-edit { input { font-size: 16px; diff --git a/cms/templates/overview.html b/cms/templates/overview.html index a75a27745f..771991aec6 100644 --- a/cms/templates/overview.html +++ b/cms/templates/overview.html @@ -101,7 +101,7 @@

Courseware

- New Section + New Section % for section in sections: