]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1424940 - Removing datetimepicker residue
authorSebastin Santy <sebastinssanty@gmail.com>
Fri, 15 Dec 2017 21:48:55 +0000 (15:48 -0600)
committerDylan William Hardison <dylan@hardison.net>
Fri, 15 Dec 2017 21:48:55 +0000 (15:48 -0600)
extensions/BugModal/web/bug_modal.js

index ab479d07e2dd842f889ae49eb4b8a28003c3564c..104acef0bd1bfc960f1041a13d2e71a9c9c96dad 100644 (file)
@@ -976,30 +976,7 @@ $(function() {
             $('#' + id + '-view').hide();
             $('#' + id).show().focus().select();
         });
-
-    // date/datetime pickers
-    $('.cf_datetime').datetimepicker({
-        format: 'Y-m-d G:i:s',
-        datepicker: true,
-        timepicker: true,
-        scrollInput: false,
-        lazyInit: false, // there's a bug which prevents img->show from working with lazy:true
-        closeOnDateSelect: true
-    });
-    $('.cf_date').datetimepicker({
-        format: 'Y-m-d',
-        datepicker: true,
-        timepicker: false,
-        scrollInput: false,
-        lazyInit: false,
-        closeOnDateSelect: true
-    });
-    $('.cf_datetime-img, .cf_date-img')
-        .click(function(event) {
-            var id = $(event.target).attr('id').replace(/-img$/, '');
-            $('#' + id).datetimepicker('show');
-        });
-
+        
     // timetracking
     $('#work_time').change(function() {
         // subtracts time spent from remaining time