Skip to content
Snippets Groups Projects
Commit 1ecedf1c authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #117 from greezybacon/issue/client-datepicker


Fix date picker issues on client interface

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents a0ea7f70 ab77e2de
No related branches found
No related tags found
No related merge requests found
......@@ -54,3 +54,16 @@ div.section-break {
input.dp {
width: 10em;
}
/* Custom css for datepicker */
.ui-datepicker-trigger {
display:inline-block;
border:0;
padding:0;
margin-left:2px;
position:relative;
top:-2px;
width:16px;
height:16px;
background:inherit;
}
images/cal.gif

127 B

images/cal.png

595 B

......@@ -107,6 +107,23 @@ $(document).ready(function(){
});
});
}
$.translate_format = function(str) {
var translation = {
'd':'dd',
'j':'d',
'z':'o',
'm':'mm',
'F':'MM',
'n':'m',
'Y':'yy'
};
// Change PHP formats to datepicker ones
$.each(translation, function(php, jqdp) {
str = str.replace(php, jqdp);
});
return str;
};
});
showImagesInline = function(urls, thread_id) {
......
scp/images/cal.gif

127 B

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment