Skip to content

Commit

Permalink
SAK-33295: syllabus item title requirement/validation not visible to …
Browse files Browse the repository at this point in the history
  • Loading branch information
bjones86 authored Aug 29, 2017
1 parent 5d08175 commit 4b38ff9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions syllabus/syllabus-app/src/webapp/js/syllabus.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,14 +501,17 @@ function doAddItemButtonClick( msgs, published )
if( $( "#successInfo" ).is( ":visible" ) )
{
location.reload();
return true;
}
}

return false;
}

function showConfirmAdd(msgs, mainframeId){
$('#container', this.top.document).append("<div></div>");
$('<div></div>').appendTo('body')
.html("<div><h6>" + msgs.syllabus_title + "</h6><input type='text' id='newTitle'/></div><div style='display:none' id='requiredTitle' class='warning'>" + msgs.required + "</div>" +
.html("<div><h6><span class='reqStar'>* </span>" + msgs.syllabus_title + "</h6><input type='text' id='newTitle'/></div><div style='display:none' id='requiredTitle' class='warning'>" + msgs.required + "</div>" +
"<h6>" + msgs.syllabus_content + "</h6><div class='bodyInput' id='newContentDiv'><textarea cols='120' id='newContentTextAreaWysiwyg'/></div>")
.dialog({
position: {
Expand All @@ -526,11 +529,11 @@ function showConfirmAdd(msgs, mainframeId){
buttons: [
{
text: msgs.bar_publish,
click: function() { doAddItemButtonClick( msgs, true ); $( this ).dialog( "close" ); }
click: function() { if (doAddItemButtonClick( msgs, true )) {$( this ).dialog( "close" );} }
},
{
text: msgs.bar_new,
click: function() { doAddItemButtonClick( msgs, false ); $( this ).dialog( "close" ); }
click: function() { if (doAddItemButtonClick( msgs, false )) {$( this ).dialog( "close" );} }
},
{
text: msgs.bar_cancel,
Expand Down

0 comments on commit 4b38ff9

Please sign in to comment.