lib/oxidized/web/public/scripts/oxidized.js in oxidized-web-0.13.1 vs lib/oxidized/web/public/scripts/oxidized.js in oxidized-web-0.14.0

- old
+ new

@@ -23,20 +23,10 @@ label = input.val().replace(/\\/g, '/').replace(/.*\//, ''); input.trigger('fileSelect', [numFiles, label]); }); }; -// fix colvis buttons -var fixColVisBtn = function() { - $('.ColVis_Button').each(function() { - $(this).addClass('btn btn-default'); - }); - $('.ColVis_MasterButton').each(function() { - $(this).addClass('pull-right'); - }); -}; - var convertTime = function() { /* Convert UTC times to local browser times * Requires that the times on the server are UTC * Requires a class name of `time` to be set on element desired to be changed * Requires that element have a text in the format of `YYYY-mm-dd HH:MM:SS` @@ -51,17 +41,16 @@ var month = ("0"+(date.getMonth()+1)).slice(-2); var day = ("0" + date.getDate()).slice(-2); var hour = ("0" + date.getHours()).slice(-2); var minute = ("0" + date.getMinutes()).slice(-2); var second = ("0" + date.getSeconds()).slice(-2); - var timeZone = date.toString().match(/\(.*\)/)[0].match(/[A-Z]/g).join(''); + var timeZone = date.toString().match(/[A-Z]{3,4}[+-][0-9]{4}/)[0]; $(this).text(year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':' + second + ' ' + timeZone); }); }; $(function() { onFileSelected(); - fixColVisBtn(); convertTime(); // Add a row to the migration form $("#add").click(function() { add_file_upload(); });