Pārlūkot izejas kodu

Transformative action bugs

Gabriel Santiago Plaza 2 gadus atpakaļ
vecāks
revīzija
9eaba7e752

+ 7
- 5
app/views/local/managers/shared/annual-plans.blade.php Parādīt failu

@@ -98,12 +98,12 @@
98 98
 
99 99
                     </div>
100 100
 
101
-
101
+                    <input type='hidden' id='typ_semester_outcome_id' value='0'>
102 102
                     <div id='new_transformative_actions_to_outcome'>
103
-                        <input type='hidden' id='typ_semester_outcome_id' value='0'>
103
+           
104 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 107
                         onclick='addTransToPlan()'>
108 108
                         <span class='glyphicon glyphicon-plus'>
109 109
 
@@ -440,6 +440,7 @@
440 440
         }
441 441
 
442 442
         function fetchEverything(li) {
443
+            $('#close_button').click();
443 444
             var id = $(li).data('outcome-id');
444 445
             var name = $(li).data('outcome-name');
445 446
             var semester = $(li).data('semester-id');
@@ -931,7 +932,7 @@
931 932
                 'type': "button",
932 933
                 'id': 'close_button',
933 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 936
             }).html('Close');
936 937
             saveButton = $('<button/>', {
937 938
                 'class': 'btn btn-primary',
@@ -945,8 +946,9 @@
945 946
             $('#new_transformative_actions_to_outcome').append(div_description);
946 947
             $('#new_transformative_actions_to_outcome').append(closeButton);
947 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