|
@@ -1082,7 +1082,7 @@ console.log($('#select-school'));
|
1082
|
1082
|
{{ Auth::user()->role }}==1
|
1083
|
1083
|
|| ({{ Auth::user()->role }}==2 && selected.data('admin')!=1)
|
1084
|
1084
|
|| ({{ Auth::user()->role }}==3
|
1085
|
|
- && programs.includes(selected.data('template-program-id').toString())
|
|
1085
|
+ && programs.includes(selected.data('template-program-id'))
|
1086
|
1086
|
|
1087
|
1087
|
&& selected.data('admin')!=1
|
1088
|
1088
|
)
|
|
@@ -1391,6 +1391,7 @@ $('.save').on('click', function(e)
|
1391
|
1391
|
{
|
1392
|
1392
|
$('#js-error-row').hide();
|
1393
|
1393
|
}
|
|
1394
|
+ /*
|
1394
|
1395
|
program_id = $('#select-program').find(':selected').data('program-id')
|
1395
|
1396
|
if(program_id == 0){
|
1396
|
1397
|
$('#modal-title-rubric').html("All criteria will be associated with this school's programs");
|
|
@@ -1475,10 +1476,11 @@ $('.save').on('click', function(e)
|
1475
|
1476
|
});
|
1476
|
1477
|
}
|
1477
|
1478
|
|
1478
|
|
- $('#rubric-modal').modal('toggle');
|
|
1479
|
+ $('#rubric-modal').modal('toggle');*/
|
1479
|
1480
|
$('#saveButton').data('button-id',$(this).attr('id'));
|
1480
|
1481
|
|
1481
|
1482
|
|
|
1483
|
+ saveTemplate();
|
1482
|
1484
|
});
|
1483
|
1485
|
|
1484
|
1486
|
// When the confirm delete button is clicked
|