From 5a283127a4b77d1f4bce4f09b3ea00c8b3d9ed60 Mon Sep 17 00:00:00 2001 From: marco Date: Wed, 13 Feb 2013 16:41:43 -0500 Subject: [PATCH] clean up based on cahrens pull requests notes --- cms/static/sass/_unit.scss | 2 +- .../xmodule/xmodule/templates/problem/optionresponse.yaml | 4 ++-- common/static/js/vendor/jquery.tabs.js | 7 ------- 3 files changed, 3 insertions(+), 10 deletions(-) delete mode 100644 common/static/js/vendor/jquery.tabs.js diff --git a/cms/static/sass/_unit.scss b/cms/static/sass/_unit.scss index eb0431f41e..443eddba9f 100644 --- a/cms/static/sass/_unit.scss +++ b/cms/static/sass/_unit.scss @@ -3,7 +3,7 @@ margin: 40px; } -//Problem selector requirements - TO DO: Marco -determine placement, integration for this +//Problem Selector tab menu requirements .js .tabs .tab { display: none; } diff --git a/common/lib/xmodule/xmodule/templates/problem/optionresponse.yaml b/common/lib/xmodule/xmodule/templates/problem/optionresponse.yaml index 7bbcb5ee3f..f523c7fdc5 100644 --- a/common/lib/xmodule/xmodule/templates/problem/optionresponse.yaml +++ b/common/lib/xmodule/xmodule/templates/problem/optionresponse.yaml @@ -28,13 +28,13 @@ metadata: " data: | -

Dropdown problems gives a limited set of options for students to respond with, and present those options +

Dropdown problems give a limited set of options for students to respond with, and present those options in a format that encourages them to search for a specific answer rather than being immediately presented with options from which to recognize the correct answer.

The answer options and the identification of the correct answer is defined in the optioninput tag.

-

Translation between Dropdowns and __________ is extremely straightforward: +

Translation between Dropdown and __________ is extremely straightforward: diff --git a/common/static/js/vendor/jquery.tabs.js b/common/static/js/vendor/jquery.tabs.js deleted file mode 100644 index 1265255c8a..0000000000 --- a/common/static/js/vendor/jquery.tabs.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @name jQuery Tabs - * @author Trevor Davis - * @copyright (cc) Trevor Davis (http://www.trevordavis.net) - * - * Licensed under the CC-GNU GPL (http://creativecommons.org/licenses/GPL/2.0/) - */(function(e,t,n,r){var i=function(t,n){this.elem=t;this.$elem=e(t);this.options=n;this.metadata=this.$elem.data("tabs-options");this.$navTabs=this.$elem.find(".nav-tabs");this.$tabs=this.$elem.find(".tabs")};i.prototype={defaults:{},init:function(){var t=this;t.$navTabs.on("click","a",e.proxy(t.handleClick,t));t.setInitial();t.$tabs.find(".current").show();return this},changeTabs:function(e,t){var n=this,r=n.$tabs.find(".current");n.$navTabs.find(".current").removeClass("current");e.addClass("current");r.fadeOut(500,function(){t.fadeIn(500,function(){r.add(t).toggleClass("current")})})},handleClick:function(t){var n=this,r=e(t.currentTarget),i=r.parent(),s=r.attr("href").split("#")[1],o=e("#"+s);o&&!i.hasClass("current")&&n.changeTabs(i,o);t.preventDefault()},setInitial:function(){var e=this,n=t.location.href.split("#")[1],r,i,s;if(n){r=n.replace("tab-","");i=e.$tabs.find("#"+r);if(i.length){s=e.$navTabs.find('a[href$="#'+r+'"]').parent();s.length&&e.changeTabs(s,i)}}}};i.defaults=i.prototype.defaults;e.fn.tabs=function(e){return this.each(function(){(new i(this,e)).init()})}})(jQuery,window,document); \ No newline at end of file