epic-s6ts
[kivitendo-erp.git] / js / kivi.CustomDataExportDesigner.js
1 namespace('kivi.CustomDataExportDesigner', function(ns){
2   'use strict';
3
4   ns.enable_default_value = function() {
5     var count = $(this).prop('id').replace("default_value_type_", "");
6     var type  = $(this).val();
7     $('#default_value_' + count).prop('disabled', (type === 'none') || (type === 'current_user_login'));
8   };
9 });
10
11 $(function() {
12   $('[id^="default_value_type_"]').change(kivi.CustomDataExportDesigner.enable_default_value);
13 });