Skip to content

Commit 98625e4

Browse files
committed
Batch-Import verbessert
1 parent 3b48510 commit 98625e4

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

assets/js/fau-studium-display-admin.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/fau-studium-display-admin.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
const { __, _x, _n, sprintf } = wp.i18n;
22

3-
//console.log(__('Test', 'fau-studium-display'));
4-
53
jQuery(document).ready(function($) {
64

75
let searchResults = $('#degree-program-results');
@@ -67,12 +65,8 @@ jQuery(document).ready(function($) {
6765
.map(function() { return $(this).data('id'); })
6866
.get();
6967
if (checkedIds.length > 0) {
70-
searchResults.find('button, a.button').addClass('button-disabled');
71-
searchResults.find('input[type="checkbox"][name^="batch-import"]').addClass('disabled');
7268
$.each(checkedIds, function(index, id) {
73-
searchResults.find('div.program-item[data-program_id="' + id + '"] span.dashicons-plus')
74-
.removeClass('dashicons-plus')
75-
.addClass('dashicons-update').addClass('spin');
69+
$('a.add-degree-program[data-id="' + id + '"]').trigger('click');
7670
});
7771
sync_degree_programs(checkedIds, []);
7872
} else {

0 commit comments

Comments
 (0)