Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-ora2
Commits
387122ef
Commit
387122ef
authored
Jul 18, 2014
by
gradyward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed the default tab to be Prompt, not Settings
parent
ecba779b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletions
+11
-1
openassessment/xblock/static/js/openassessment-studio.min.js
+0
-0
openassessment/xblock/static/js/spec/studio/oa_edit.js
+10
-0
openassessment/xblock/static/js/src/studio/oa_edit.js
+1
-1
No files found.
openassessment/xblock/static/js/openassessment-studio.min.js
View file @
387122ef
This diff is collapsed.
Click to expand it.
openassessment/xblock/static/js/spec/studio/oa_edit.js
View file @
387122ef
...
@@ -83,4 +83,14 @@ describe("OpenAssessment.StudioView", function() {
...
@@ -83,4 +83,14 @@ describe("OpenAssessment.StudioView", function() {
view
.
save
();
view
.
save
();
expect
(
runtime
.
notify
).
toHaveBeenCalledWith
(
'error'
,
{
msg
:
'Test error'
});
expect
(
runtime
.
notify
).
toHaveBeenCalledWith
(
'error'
,
{
msg
:
'Test error'
});
});
});
it
(
"displays the correct tab on initialization"
,
function
()
{
$
(
".oa_editor_tab"
,
view
.
element
).
each
(
function
(){
if
(
$
(
this
).
attr
(
'aria-controls'
)
==
"oa_prompt_editor_wrapper"
){
expect
(
$
(
this
).
hasClass
(
'ui-state-active'
)).
toBe
(
true
);
}
else
{
expect
(
$
(
this
).
hasClass
(
'ui-state-active'
)).
toBe
(
false
);
}
});
});
});
});
openassessment/xblock/static/js/src/studio/oa_edit.js
View file @
387122ef
...
@@ -93,7 +93,7 @@ OpenAssessment.StudioView.prototype = {
...
@@ -93,7 +93,7 @@ OpenAssessment.StudioView.prototype = {
initializeTabs
:
function
()
{
initializeTabs
:
function
()
{
// If this is the first editor that the user has opened, default to the prompt view.
// If this is the first editor that the user has opened, default to the prompt view.
if
(
typeof
(
OpenAssessment
.
lastOpenEditingTab
)
===
"undefined"
)
{
if
(
typeof
(
OpenAssessment
.
lastOpenEditingTab
)
===
"undefined"
)
{
OpenAssessment
.
lastOpenEditingTab
=
0
;
OpenAssessment
.
lastOpenEditingTab
=
2
;
}
}
// Initialize JQuery UI Tabs, and activates the appropriate tab.
// Initialize JQuery UI Tabs, and activates the appropriate tab.
$
(
".openassessment_editor_content_and_tabs"
,
this
.
element
)
$
(
".openassessment_editor_content_and_tabs"
,
this
.
element
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment