date_input icon indicating copy to clipboard operation
date_input copied to clipboard

two bug

Open qubaomingg opened this issue 10 years ago • 3 comments

i have meet two bugs:

  1. $.browser.msie is undefined. this is because of jquery don't support msie from 1.9 and i fixed.
  2. Uncaught Error: Syntax error, unrecognized expression: td[date=19 Mar 2014]

have no idea..

qubaomingg avatar Mar 19 '14 14:03 qubaomingg

me too..

mtyang avatar Jul 08 '14 04:07 mtyang

$.browser property is removed in jQuery 1.9+ (http://api.jquery.com/jquery.browser/)

Add this small plugin to get rid of the error: https://github.com/gabceb/jquery-browser-plugin

coax avatar Nov 25 '14 16:11 coax

Regarding 2 mistake:

you need to change next lines:

line 207:

if (matches = string.match(/^(\d{1,2}) ([^\s]+) (\d{4,4})$/)) {

replace it with:

if (matches = string.match(/^(\d{1,2}) (\d{1,2}) (\d{4,4})$/)) {

and line 215:

return date.getDate() + " " + this.short_month_names[date.getMonth()] + " " + date.getFullYear();

replace it with:

return date.getDate() + "-" + date.getMonth() + "-" + date.getFullYear();

maxweb4u avatar Jul 18 '15 15:07 maxweb4u