Browse Source

Transformative action bugs

parent
commit
9eaba7e752
1 changed files with 7 additions and 5 deletions
  1. 7
    5
      app/views/local/managers/shared/annual-plans.blade.php

+ 7
- 5
app/views/local/managers/shared/annual-plans.blade.php View File

98
 
98
 
99
                     </div>
99
                     </div>
100
 
100
 
101
-
101
+                    <input type='hidden' id='typ_semester_outcome_id' value='0'>
102
                     <div id='new_transformative_actions_to_outcome'>
102
                     <div id='new_transformative_actions_to_outcome'>
103
-                        <input type='hidden' id='typ_semester_outcome_id' value='0'>
103
+           
104
                     </div>
104
                     </div>
105
 
105
 
106
-                    <button class='btn btn-md btn-secondary button-add-objective' id='add_trans_action'
106
+                    <button class='btn btn-md btn-secondary button-add-transformative' id='add_trans_action'
107
                         onclick='addTransToPlan()'>
107
                         onclick='addTransToPlan()'>
108
                         <span class='glyphicon glyphicon-plus'>
108
                         <span class='glyphicon glyphicon-plus'>
109
 
109
 
440
         }
440
         }
441
 
441
 
442
         function fetchEverything(li) {
442
         function fetchEverything(li) {
443
+            $('#close_button').click();
443
             var id = $(li).data('outcome-id');
444
             var id = $(li).data('outcome-id');
444
             var name = $(li).data('outcome-name');
445
             var name = $(li).data('outcome-name');
445
             var semester = $(li).data('semester-id');
446
             var semester = $(li).data('semester-id');
931
                 'type': "button",
932
                 'type': "button",
932
                 'id': 'close_button',
933
                 'id': 'close_button',
933
                 'style': 'float: right',
934
                 'style': 'float: right',
934
-                'onclick': '$(".editting_action").show(); $(".button-add-objective").show(); $("#new_transformative_actions_to_outcome").html(" ")'
935
+                'onclick': '$(".editting_action").show(); $(".button-add-transformative").show(); $("#new_transformative_actions_to_outcome").html(" ")'
935
             }).html('Close');
936
             }).html('Close');
936
             saveButton = $('<button/>', {
937
             saveButton = $('<button/>', {
937
                 'class': 'btn btn-primary',
938
                 'class': 'btn btn-primary',
945
             $('#new_transformative_actions_to_outcome').append(div_description);
946
             $('#new_transformative_actions_to_outcome').append(div_description);
946
             $('#new_transformative_actions_to_outcome').append(closeButton);
947
             $('#new_transformative_actions_to_outcome').append(closeButton);
947
             $('#new_transformative_actions_to_outcome').append(saveButton)
948
             $('#new_transformative_actions_to_outcome').append(saveButton)
949
+            $('#new_transformative_actions_to_outcome').append("<br>")
948
 
950
 
949
-            $('.button-add-objective').hide();
951
+            $('.button-add-transformative').hide();
950
 
952
 
951
 
953
 
952
 
954