Skip to content
Snippets Groups Projects
Commit ab77e2de authored by Jared Hancock's avatar Jared Hancock
Browse files

Fix datepicker issues on client interface

parent bbbaba3d
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.
Finish editing this message first!
Please register or to comment