Skip to content
Snippets Groups Projects
Select Git revision
  • 7bdeb341efea0ca705cdff59a83169df2e9f8741
  • main default protected
  • studip-rector
  • ci-opt
  • course-members-export-as-word
  • data-vue-app
  • pipeline-improvements
  • webpack-optimizations
  • rector
  • icon-renewal
  • http-client-and-factories
  • jsonapi-atomic-operations
  • vueify-messages
  • tic-2341
  • 135-translatable-study-areas
  • extensible-sorm-action-parameters
  • sorm-configuration-trait
  • jsonapi-mvv-routes
  • docblocks-for-magic-methods
19 results

plugins.php

Blame
  • Forked from Stud.IP / Stud.IP
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    TandemPlugin.js 984 B
    
    STUDIP.TandemPlugin = {
        addMotherLanguage: function() {
            var template = jQuery('#motherLanguageRowTemplate');
            var tbody = jQuery(template).parent();
            
            var new_row = jQuery(template).clone();
            new_row.id = null;
            
            var status_input = jQuery(new_row).find('input.EntryStatus')[0];
            
            if(!status_input) { console.log('no status input!'); }
            
            jQuery(status_input).val('K');
            jQuery(new_row).removeAttr('style');
            jQuery(new_row).appendTo(tbody);
        },
        
        deleteMotherLanguage: function(caller, language_id) {
            var row = jQuery(caller).parent().parent();
            
            if(language_id != null) {
                jQuery(row).attr('style', 'display:none;');
                //entry exists in the database:
                var delete_input = jQuery(row).find('.EntryStatus');
                jQuery(delete_input).val('D');
            } else {
                jQuery(row).remove();
            }
        }
    };