Hey there,
I’m implementing a Jira plugin. On it’s UI there is a date picker which should adapt the look of Jira. The problem is:
For some browsers (eg. internet explorer) the date picker looks correct (Jira style), but for others (Chrome & Firefox) the default date picker style is displayed.
Internet explorer
Chorme
.vm
$webResourceManager.requireResourcesForContext("com.atlassian.auiplugin:aui-date-picker")
<html>
<head>
...
<meta name="decorator" content="atl.admin">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script type="text/javascript">
AJS.$(document).ready(function() {
AJS.$('#release-picker-rv').datePicker({ 'overrideBrowserDefault': true });
});
</script>
</head>
<body>
...
<div class="field-group">
<label for="releasePicker">Release version*:</label>
<input class="aui-date-picker" name="releasePicker" id="release-picker-rv" type="date" autocomplete="off"/>
</div>
...
</body>
atlassian-plugin.xml
...
<resource type="download" name="date-picker" location="com.atlassian.auiplugin:aui-date-picker"/>
<resource type="download" name="jquery.min.js" location="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">
...
Strange right?