Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/jquery/ui
File: datepicker.js
} else {
[1500] Fix | Delete
chars += format.charAt( iFormat );
[1501] Fix | Delete
}
[1502] Fix | Delete
} else {
[1503] Fix | Delete
switch ( format.charAt( iFormat ) ) {
[1504] Fix | Delete
case "d": case "m": case "y": case "@":
[1505] Fix | Delete
chars += "0123456789";
[1506] Fix | Delete
break;
[1507] Fix | Delete
case "D": case "M":
[1508] Fix | Delete
return null; // Accept anything
[1509] Fix | Delete
case "'":
[1510] Fix | Delete
if ( lookAhead( "'" ) ) {
[1511] Fix | Delete
chars += "'";
[1512] Fix | Delete
} else {
[1513] Fix | Delete
literal = true;
[1514] Fix | Delete
}
[1515] Fix | Delete
break;
[1516] Fix | Delete
default:
[1517] Fix | Delete
chars += format.charAt( iFormat );
[1518] Fix | Delete
}
[1519] Fix | Delete
}
[1520] Fix | Delete
}
[1521] Fix | Delete
return chars;
[1522] Fix | Delete
},
[1523] Fix | Delete
[1524] Fix | Delete
/* Get a setting value, defaulting if necessary. */
[1525] Fix | Delete
_get: function( inst, name ) {
[1526] Fix | Delete
return inst.settings[ name ] !== undefined ?
[1527] Fix | Delete
inst.settings[ name ] : this._defaults[ name ];
[1528] Fix | Delete
},
[1529] Fix | Delete
[1530] Fix | Delete
/* Parse existing date and initialise date picker. */
[1531] Fix | Delete
_setDateFromField: function( inst, noDefault ) {
[1532] Fix | Delete
if ( inst.input.val() === inst.lastVal ) {
[1533] Fix | Delete
return;
[1534] Fix | Delete
}
[1535] Fix | Delete
[1536] Fix | Delete
var dateFormat = this._get( inst, "dateFormat" ),
[1537] Fix | Delete
dates = inst.lastVal = inst.input ? inst.input.val() : null,
[1538] Fix | Delete
defaultDate = this._getDefaultDate( inst ),
[1539] Fix | Delete
date = defaultDate,
[1540] Fix | Delete
settings = this._getFormatConfig( inst );
[1541] Fix | Delete
[1542] Fix | Delete
try {
[1543] Fix | Delete
date = this.parseDate( dateFormat, dates, settings ) || defaultDate;
[1544] Fix | Delete
} catch ( event ) {
[1545] Fix | Delete
dates = ( noDefault ? "" : dates );
[1546] Fix | Delete
}
[1547] Fix | Delete
inst.selectedDay = date.getDate();
[1548] Fix | Delete
inst.drawMonth = inst.selectedMonth = date.getMonth();
[1549] Fix | Delete
inst.drawYear = inst.selectedYear = date.getFullYear();
[1550] Fix | Delete
inst.currentDay = ( dates ? date.getDate() : 0 );
[1551] Fix | Delete
inst.currentMonth = ( dates ? date.getMonth() : 0 );
[1552] Fix | Delete
inst.currentYear = ( dates ? date.getFullYear() : 0 );
[1553] Fix | Delete
this._adjustInstDate( inst );
[1554] Fix | Delete
},
[1555] Fix | Delete
[1556] Fix | Delete
/* Retrieve the default date shown on opening. */
[1557] Fix | Delete
_getDefaultDate: function( inst ) {
[1558] Fix | Delete
return this._restrictMinMax( inst,
[1559] Fix | Delete
this._determineDate( inst, this._get( inst, "defaultDate" ), new Date() ) );
[1560] Fix | Delete
},
[1561] Fix | Delete
[1562] Fix | Delete
/* A date may be specified as an exact value or a relative one. */
[1563] Fix | Delete
_determineDate: function( inst, date, defaultDate ) {
[1564] Fix | Delete
var offsetNumeric = function( offset ) {
[1565] Fix | Delete
var date = new Date();
[1566] Fix | Delete
date.setDate( date.getDate() + offset );
[1567] Fix | Delete
return date;
[1568] Fix | Delete
},
[1569] Fix | Delete
offsetString = function( offset ) {
[1570] Fix | Delete
try {
[1571] Fix | Delete
return $.datepicker.parseDate( $.datepicker._get( inst, "dateFormat" ),
[1572] Fix | Delete
offset, $.datepicker._getFormatConfig( inst ) );
[1573] Fix | Delete
} catch ( e ) {
[1574] Fix | Delete
[1575] Fix | Delete
// Ignore
[1576] Fix | Delete
}
[1577] Fix | Delete
[1578] Fix | Delete
var date = ( offset.toLowerCase().match( /^c/ ) ?
[1579] Fix | Delete
$.datepicker._getDate( inst ) : null ) || new Date(),
[1580] Fix | Delete
year = date.getFullYear(),
[1581] Fix | Delete
month = date.getMonth(),
[1582] Fix | Delete
day = date.getDate(),
[1583] Fix | Delete
pattern = /([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,
[1584] Fix | Delete
matches = pattern.exec( offset );
[1585] Fix | Delete
[1586] Fix | Delete
while ( matches ) {
[1587] Fix | Delete
switch ( matches[ 2 ] || "d" ) {
[1588] Fix | Delete
case "d" : case "D" :
[1589] Fix | Delete
day += parseInt( matches[ 1 ], 10 ); break;
[1590] Fix | Delete
case "w" : case "W" :
[1591] Fix | Delete
day += parseInt( matches[ 1 ], 10 ) * 7; break;
[1592] Fix | Delete
case "m" : case "M" :
[1593] Fix | Delete
month += parseInt( matches[ 1 ], 10 );
[1594] Fix | Delete
day = Math.min( day, $.datepicker._getDaysInMonth( year, month ) );
[1595] Fix | Delete
break;
[1596] Fix | Delete
case "y": case "Y" :
[1597] Fix | Delete
year += parseInt( matches[ 1 ], 10 );
[1598] Fix | Delete
day = Math.min( day, $.datepicker._getDaysInMonth( year, month ) );
[1599] Fix | Delete
break;
[1600] Fix | Delete
}
[1601] Fix | Delete
matches = pattern.exec( offset );
[1602] Fix | Delete
}
[1603] Fix | Delete
return new Date( year, month, day );
[1604] Fix | Delete
},
[1605] Fix | Delete
newDate = ( date == null || date === "" ? defaultDate : ( typeof date === "string" ? offsetString( date ) :
[1606] Fix | Delete
( typeof date === "number" ? ( isNaN( date ) ? defaultDate : offsetNumeric( date ) ) : new Date( date.getTime() ) ) ) );
[1607] Fix | Delete
[1608] Fix | Delete
newDate = ( newDate && newDate.toString() === "Invalid Date" ? defaultDate : newDate );
[1609] Fix | Delete
if ( newDate ) {
[1610] Fix | Delete
newDate.setHours( 0 );
[1611] Fix | Delete
newDate.setMinutes( 0 );
[1612] Fix | Delete
newDate.setSeconds( 0 );
[1613] Fix | Delete
newDate.setMilliseconds( 0 );
[1614] Fix | Delete
}
[1615] Fix | Delete
return this._daylightSavingAdjust( newDate );
[1616] Fix | Delete
},
[1617] Fix | Delete
[1618] Fix | Delete
/* Handle switch to/from daylight saving.
[1619] Fix | Delete
* Hours may be non-zero on daylight saving cut-over:
[1620] Fix | Delete
* > 12 when midnight changeover, but then cannot generate
[1621] Fix | Delete
* midnight datetime, so jump to 1AM, otherwise reset.
[1622] Fix | Delete
* @param date (Date) the date to check
[1623] Fix | Delete
* @return (Date) the corrected date
[1624] Fix | Delete
*/
[1625] Fix | Delete
_daylightSavingAdjust: function( date ) {
[1626] Fix | Delete
if ( !date ) {
[1627] Fix | Delete
return null;
[1628] Fix | Delete
}
[1629] Fix | Delete
date.setHours( date.getHours() > 12 ? date.getHours() + 2 : 0 );
[1630] Fix | Delete
return date;
[1631] Fix | Delete
},
[1632] Fix | Delete
[1633] Fix | Delete
/* Set the date(s) directly. */
[1634] Fix | Delete
_setDate: function( inst, date, noChange ) {
[1635] Fix | Delete
var clear = !date,
[1636] Fix | Delete
origMonth = inst.selectedMonth,
[1637] Fix | Delete
origYear = inst.selectedYear,
[1638] Fix | Delete
newDate = this._restrictMinMax( inst, this._determineDate( inst, date, new Date() ) );
[1639] Fix | Delete
[1640] Fix | Delete
inst.selectedDay = inst.currentDay = newDate.getDate();
[1641] Fix | Delete
inst.drawMonth = inst.selectedMonth = inst.currentMonth = newDate.getMonth();
[1642] Fix | Delete
inst.drawYear = inst.selectedYear = inst.currentYear = newDate.getFullYear();
[1643] Fix | Delete
if ( ( origMonth !== inst.selectedMonth || origYear !== inst.selectedYear ) && !noChange ) {
[1644] Fix | Delete
this._notifyChange( inst );
[1645] Fix | Delete
}
[1646] Fix | Delete
this._adjustInstDate( inst );
[1647] Fix | Delete
if ( inst.input ) {
[1648] Fix | Delete
inst.input.val( clear ? "" : this._formatDate( inst ) );
[1649] Fix | Delete
}
[1650] Fix | Delete
},
[1651] Fix | Delete
[1652] Fix | Delete
/* Retrieve the date(s) directly. */
[1653] Fix | Delete
_getDate: function( inst ) {
[1654] Fix | Delete
var startDate = ( !inst.currentYear || ( inst.input && inst.input.val() === "" ) ? null :
[1655] Fix | Delete
this._daylightSavingAdjust( new Date(
[1656] Fix | Delete
inst.currentYear, inst.currentMonth, inst.currentDay ) ) );
[1657] Fix | Delete
return startDate;
[1658] Fix | Delete
},
[1659] Fix | Delete
[1660] Fix | Delete
/* Attach the onxxx handlers. These are declared statically so
[1661] Fix | Delete
* they work with static code transformers like Caja.
[1662] Fix | Delete
*/
[1663] Fix | Delete
_attachHandlers: function( inst ) {
[1664] Fix | Delete
var stepMonths = this._get( inst, "stepMonths" ),
[1665] Fix | Delete
id = "#" + inst.id.replace( /\\\\/g, "\\" );
[1666] Fix | Delete
inst.dpDiv.find( "[data-handler]" ).map( function() {
[1667] Fix | Delete
var handler = {
[1668] Fix | Delete
prev: function() {
[1669] Fix | Delete
$.datepicker._adjustDate( id, -stepMonths, "M" );
[1670] Fix | Delete
},
[1671] Fix | Delete
next: function() {
[1672] Fix | Delete
$.datepicker._adjustDate( id, +stepMonths, "M" );
[1673] Fix | Delete
},
[1674] Fix | Delete
hide: function() {
[1675] Fix | Delete
$.datepicker._hideDatepicker();
[1676] Fix | Delete
},
[1677] Fix | Delete
today: function() {
[1678] Fix | Delete
$.datepicker._gotoToday( id );
[1679] Fix | Delete
},
[1680] Fix | Delete
selectDay: function() {
[1681] Fix | Delete
$.datepicker._selectDay( id, +this.getAttribute( "data-month" ), +this.getAttribute( "data-year" ), this );
[1682] Fix | Delete
return false;
[1683] Fix | Delete
},
[1684] Fix | Delete
selectMonth: function() {
[1685] Fix | Delete
$.datepicker._selectMonthYear( id, this, "M" );
[1686] Fix | Delete
return false;
[1687] Fix | Delete
},
[1688] Fix | Delete
selectYear: function() {
[1689] Fix | Delete
$.datepicker._selectMonthYear( id, this, "Y" );
[1690] Fix | Delete
return false;
[1691] Fix | Delete
}
[1692] Fix | Delete
};
[1693] Fix | Delete
$( this ).on( this.getAttribute( "data-event" ), handler[ this.getAttribute( "data-handler" ) ] );
[1694] Fix | Delete
} );
[1695] Fix | Delete
},
[1696] Fix | Delete
[1697] Fix | Delete
/* Generate the HTML for the current state of the date picker. */
[1698] Fix | Delete
_generateHTML: function( inst ) {
[1699] Fix | Delete
var maxDraw, prevText, prev, nextText, next, currentText, gotoDate,
[1700] Fix | Delete
controls, buttonPanel, firstDay, showWeek, dayNames, dayNamesMin,
[1701] Fix | Delete
monthNames, monthNamesShort, beforeShowDay, showOtherMonths,
[1702] Fix | Delete
selectOtherMonths, defaultDate, html, dow, row, group, col, selectedDate,
[1703] Fix | Delete
cornerClass, calender, thead, day, daysInMonth, leadDays, curRows, numRows,
[1704] Fix | Delete
printDate, dRow, tbody, daySettings, otherMonth, unselectable,
[1705] Fix | Delete
tempDate = new Date(),
[1706] Fix | Delete
today = this._daylightSavingAdjust(
[1707] Fix | Delete
new Date( tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate() ) ), // clear time
[1708] Fix | Delete
isRTL = this._get( inst, "isRTL" ),
[1709] Fix | Delete
showButtonPanel = this._get( inst, "showButtonPanel" ),
[1710] Fix | Delete
hideIfNoPrevNext = this._get( inst, "hideIfNoPrevNext" ),
[1711] Fix | Delete
navigationAsDateFormat = this._get( inst, "navigationAsDateFormat" ),
[1712] Fix | Delete
numMonths = this._getNumberOfMonths( inst ),
[1713] Fix | Delete
showCurrentAtPos = this._get( inst, "showCurrentAtPos" ),
[1714] Fix | Delete
stepMonths = this._get( inst, "stepMonths" ),
[1715] Fix | Delete
isMultiMonth = ( numMonths[ 0 ] !== 1 || numMonths[ 1 ] !== 1 ),
[1716] Fix | Delete
currentDate = this._daylightSavingAdjust( ( !inst.currentDay ? new Date( 9999, 9, 9 ) :
[1717] Fix | Delete
new Date( inst.currentYear, inst.currentMonth, inst.currentDay ) ) ),
[1718] Fix | Delete
minDate = this._getMinMaxDate( inst, "min" ),
[1719] Fix | Delete
maxDate = this._getMinMaxDate( inst, "max" ),
[1720] Fix | Delete
drawMonth = inst.drawMonth - showCurrentAtPos,
[1721] Fix | Delete
drawYear = inst.drawYear;
[1722] Fix | Delete
[1723] Fix | Delete
if ( drawMonth < 0 ) {
[1724] Fix | Delete
drawMonth += 12;
[1725] Fix | Delete
drawYear--;
[1726] Fix | Delete
}
[1727] Fix | Delete
if ( maxDate ) {
[1728] Fix | Delete
maxDraw = this._daylightSavingAdjust( new Date( maxDate.getFullYear(),
[1729] Fix | Delete
maxDate.getMonth() - ( numMonths[ 0 ] * numMonths[ 1 ] ) + 1, maxDate.getDate() ) );
[1730] Fix | Delete
maxDraw = ( minDate && maxDraw < minDate ? minDate : maxDraw );
[1731] Fix | Delete
while ( this._daylightSavingAdjust( new Date( drawYear, drawMonth, 1 ) ) > maxDraw ) {
[1732] Fix | Delete
drawMonth--;
[1733] Fix | Delete
if ( drawMonth < 0 ) {
[1734] Fix | Delete
drawMonth = 11;
[1735] Fix | Delete
drawYear--;
[1736] Fix | Delete
}
[1737] Fix | Delete
}
[1738] Fix | Delete
}
[1739] Fix | Delete
inst.drawMonth = drawMonth;
[1740] Fix | Delete
inst.drawYear = drawYear;
[1741] Fix | Delete
[1742] Fix | Delete
prevText = this._get( inst, "prevText" );
[1743] Fix | Delete
prevText = ( !navigationAsDateFormat ? prevText : this.formatDate( prevText,
[1744] Fix | Delete
this._daylightSavingAdjust( new Date( drawYear, drawMonth - stepMonths, 1 ) ),
[1745] Fix | Delete
this._getFormatConfig( inst ) ) );
[1746] Fix | Delete
[1747] Fix | Delete
if ( this._canAdjustMonth( inst, -1, drawYear, drawMonth ) ) {
[1748] Fix | Delete
prev = $( "<a>" )
[1749] Fix | Delete
.attr( {
[1750] Fix | Delete
"class": "ui-datepicker-prev ui-corner-all",
[1751] Fix | Delete
"data-handler": "prev",
[1752] Fix | Delete
"data-event": "click",
[1753] Fix | Delete
title: prevText
[1754] Fix | Delete
} )
[1755] Fix | Delete
.append(
[1756] Fix | Delete
$( "<span>" )
[1757] Fix | Delete
.addClass( "ui-icon ui-icon-circle-triangle-" +
[1758] Fix | Delete
( isRTL ? "e" : "w" ) )
[1759] Fix | Delete
.text( prevText )
[1760] Fix | Delete
)[ 0 ].outerHTML;
[1761] Fix | Delete
} else if ( hideIfNoPrevNext ) {
[1762] Fix | Delete
prev = "";
[1763] Fix | Delete
} else {
[1764] Fix | Delete
prev = $( "<a>" )
[1765] Fix | Delete
.attr( {
[1766] Fix | Delete
"class": "ui-datepicker-prev ui-corner-all ui-state-disabled",
[1767] Fix | Delete
title: prevText
[1768] Fix | Delete
} )
[1769] Fix | Delete
.append(
[1770] Fix | Delete
$( "<span>" )
[1771] Fix | Delete
.addClass( "ui-icon ui-icon-circle-triangle-" +
[1772] Fix | Delete
( isRTL ? "e" : "w" ) )
[1773] Fix | Delete
.text( prevText )
[1774] Fix | Delete
)[ 0 ].outerHTML;
[1775] Fix | Delete
}
[1776] Fix | Delete
[1777] Fix | Delete
nextText = this._get( inst, "nextText" );
[1778] Fix | Delete
nextText = ( !navigationAsDateFormat ? nextText : this.formatDate( nextText,
[1779] Fix | Delete
this._daylightSavingAdjust( new Date( drawYear, drawMonth + stepMonths, 1 ) ),
[1780] Fix | Delete
this._getFormatConfig( inst ) ) );
[1781] Fix | Delete
[1782] Fix | Delete
if ( this._canAdjustMonth( inst, +1, drawYear, drawMonth ) ) {
[1783] Fix | Delete
next = $( "<a>" )
[1784] Fix | Delete
.attr( {
[1785] Fix | Delete
"class": "ui-datepicker-next ui-corner-all",
[1786] Fix | Delete
"data-handler": "next",
[1787] Fix | Delete
"data-event": "click",
[1788] Fix | Delete
title: nextText
[1789] Fix | Delete
} )
[1790] Fix | Delete
.append(
[1791] Fix | Delete
$( "<span>" )
[1792] Fix | Delete
.addClass( "ui-icon ui-icon-circle-triangle-" +
[1793] Fix | Delete
( isRTL ? "w" : "e" ) )
[1794] Fix | Delete
.text( nextText )
[1795] Fix | Delete
)[ 0 ].outerHTML;
[1796] Fix | Delete
} else if ( hideIfNoPrevNext ) {
[1797] Fix | Delete
next = "";
[1798] Fix | Delete
} else {
[1799] Fix | Delete
next = $( "<a>" )
[1800] Fix | Delete
.attr( {
[1801] Fix | Delete
"class": "ui-datepicker-next ui-corner-all ui-state-disabled",
[1802] Fix | Delete
title: nextText
[1803] Fix | Delete
} )
[1804] Fix | Delete
.append(
[1805] Fix | Delete
$( "<span>" )
[1806] Fix | Delete
.attr( "class", "ui-icon ui-icon-circle-triangle-" +
[1807] Fix | Delete
( isRTL ? "w" : "e" ) )
[1808] Fix | Delete
.text( nextText )
[1809] Fix | Delete
)[ 0 ].outerHTML;
[1810] Fix | Delete
}
[1811] Fix | Delete
[1812] Fix | Delete
currentText = this._get( inst, "currentText" );
[1813] Fix | Delete
gotoDate = ( this._get( inst, "gotoCurrent" ) && inst.currentDay ? currentDate : today );
[1814] Fix | Delete
currentText = ( !navigationAsDateFormat ? currentText :
[1815] Fix | Delete
this.formatDate( currentText, gotoDate, this._getFormatConfig( inst ) ) );
[1816] Fix | Delete
[1817] Fix | Delete
controls = "";
[1818] Fix | Delete
if ( !inst.inline ) {
[1819] Fix | Delete
controls = $( "<button>" )
[1820] Fix | Delete
.attr( {
[1821] Fix | Delete
type: "button",
[1822] Fix | Delete
"class": "ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all",
[1823] Fix | Delete
"data-handler": "hide",
[1824] Fix | Delete
"data-event": "click"
[1825] Fix | Delete
} )
[1826] Fix | Delete
.text( this._get( inst, "closeText" ) )[ 0 ].outerHTML;
[1827] Fix | Delete
}
[1828] Fix | Delete
[1829] Fix | Delete
buttonPanel = "";
[1830] Fix | Delete
if ( showButtonPanel ) {
[1831] Fix | Delete
buttonPanel = $( "<div class='ui-datepicker-buttonpane ui-widget-content'>" )
[1832] Fix | Delete
.append( isRTL ? controls : "" )
[1833] Fix | Delete
.append( this._isInRange( inst, gotoDate ) ?
[1834] Fix | Delete
$( "<button>" )
[1835] Fix | Delete
.attr( {
[1836] Fix | Delete
type: "button",
[1837] Fix | Delete
"class": "ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all",
[1838] Fix | Delete
"data-handler": "today",
[1839] Fix | Delete
"data-event": "click"
[1840] Fix | Delete
} )
[1841] Fix | Delete
.text( currentText ) :
[1842] Fix | Delete
"" )
[1843] Fix | Delete
.append( isRTL ? "" : controls )[ 0 ].outerHTML;
[1844] Fix | Delete
}
[1845] Fix | Delete
[1846] Fix | Delete
firstDay = parseInt( this._get( inst, "firstDay" ), 10 );
[1847] Fix | Delete
firstDay = ( isNaN( firstDay ) ? 0 : firstDay );
[1848] Fix | Delete
[1849] Fix | Delete
showWeek = this._get( inst, "showWeek" );
[1850] Fix | Delete
dayNames = this._get( inst, "dayNames" );
[1851] Fix | Delete
dayNamesMin = this._get( inst, "dayNamesMin" );
[1852] Fix | Delete
monthNames = this._get( inst, "monthNames" );
[1853] Fix | Delete
monthNamesShort = this._get( inst, "monthNamesShort" );
[1854] Fix | Delete
beforeShowDay = this._get( inst, "beforeShowDay" );
[1855] Fix | Delete
showOtherMonths = this._get( inst, "showOtherMonths" );
[1856] Fix | Delete
selectOtherMonths = this._get( inst, "selectOtherMonths" );
[1857] Fix | Delete
defaultDate = this._getDefaultDate( inst );
[1858] Fix | Delete
html = "";
[1859] Fix | Delete
[1860] Fix | Delete
for ( row = 0; row < numMonths[ 0 ]; row++ ) {
[1861] Fix | Delete
group = "";
[1862] Fix | Delete
this.maxRows = 4;
[1863] Fix | Delete
for ( col = 0; col < numMonths[ 1 ]; col++ ) {
[1864] Fix | Delete
selectedDate = this._daylightSavingAdjust( new Date( drawYear, drawMonth, inst.selectedDay ) );
[1865] Fix | Delete
cornerClass = " ui-corner-all";
[1866] Fix | Delete
calender = "";
[1867] Fix | Delete
if ( isMultiMonth ) {
[1868] Fix | Delete
calender += "<div class='ui-datepicker-group";
[1869] Fix | Delete
if ( numMonths[ 1 ] > 1 ) {
[1870] Fix | Delete
switch ( col ) {
[1871] Fix | Delete
case 0: calender += " ui-datepicker-group-first";
[1872] Fix | Delete
cornerClass = " ui-corner-" + ( isRTL ? "right" : "left" ); break;
[1873] Fix | Delete
case numMonths[ 1 ] - 1: calender += " ui-datepicker-group-last";
[1874] Fix | Delete
cornerClass = " ui-corner-" + ( isRTL ? "left" : "right" ); break;
[1875] Fix | Delete
default: calender += " ui-datepicker-group-middle"; cornerClass = ""; break;
[1876] Fix | Delete
}
[1877] Fix | Delete
}
[1878] Fix | Delete
calender += "'>";
[1879] Fix | Delete
}
[1880] Fix | Delete
calender += "<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix" + cornerClass + "'>" +
[1881] Fix | Delete
( /all|left/.test( cornerClass ) && row === 0 ? ( isRTL ? next : prev ) : "" ) +
[1882] Fix | Delete
( /all|right/.test( cornerClass ) && row === 0 ? ( isRTL ? prev : next ) : "" ) +
[1883] Fix | Delete
this._generateMonthYearHeader( inst, drawMonth, drawYear, minDate, maxDate,
[1884] Fix | Delete
row > 0 || col > 0, monthNames, monthNamesShort ) + // draw month headers
[1885] Fix | Delete
"</div><table class='ui-datepicker-calendar'><thead>" +
[1886] Fix | Delete
"<tr>";
[1887] Fix | Delete
thead = ( showWeek ? "<th class='ui-datepicker-week-col'>" + this._get( inst, "weekHeader" ) + "</th>" : "" );
[1888] Fix | Delete
for ( dow = 0; dow < 7; dow++ ) { // days of the week
[1889] Fix | Delete
day = ( dow + firstDay ) % 7;
[1890] Fix | Delete
thead += "<th scope='col'" + ( ( dow + firstDay + 6 ) % 7 >= 5 ? " class='ui-datepicker-week-end'" : "" ) + ">" +
[1891] Fix | Delete
"<span title='" + dayNames[ day ] + "'>" + dayNamesMin[ day ] + "</span></th>";
[1892] Fix | Delete
}
[1893] Fix | Delete
calender += thead + "</tr></thead><tbody>";
[1894] Fix | Delete
daysInMonth = this._getDaysInMonth( drawYear, drawMonth );
[1895] Fix | Delete
if ( drawYear === inst.selectedYear && drawMonth === inst.selectedMonth ) {
[1896] Fix | Delete
inst.selectedDay = Math.min( inst.selectedDay, daysInMonth );
[1897] Fix | Delete
}
[1898] Fix | Delete
leadDays = ( this._getFirstDayOfMonth( drawYear, drawMonth ) - firstDay + 7 ) % 7;
[1899] Fix | Delete
curRows = Math.ceil( ( leadDays + daysInMonth ) / 7 ); // calculate the number of rows to generate
[1900] Fix | Delete
numRows = ( isMultiMonth ? this.maxRows > curRows ? this.maxRows : curRows : curRows ); //If multiple months, use the higher number of rows (see #7043)
[1901] Fix | Delete
this.maxRows = numRows;
[1902] Fix | Delete
printDate = this._daylightSavingAdjust( new Date( drawYear, drawMonth, 1 - leadDays ) );
[1903] Fix | Delete
for ( dRow = 0; dRow < numRows; dRow++ ) { // create date picker rows
[1904] Fix | Delete
calender += "<tr>";
[1905] Fix | Delete
tbody = ( !showWeek ? "" : "<td class='ui-datepicker-week-col'>" +
[1906] Fix | Delete
this._get( inst, "calculateWeek" )( printDate ) + "</td>" );
[1907] Fix | Delete
for ( dow = 0; dow < 7; dow++ ) { // create date picker days
[1908] Fix | Delete
daySettings = ( beforeShowDay ?
[1909] Fix | Delete
beforeShowDay.apply( ( inst.input ? inst.input[ 0 ] : null ), [ printDate ] ) : [ true, "" ] );
[1910] Fix | Delete
otherMonth = ( printDate.getMonth() !== drawMonth );
[1911] Fix | Delete
unselectable = ( otherMonth && !selectOtherMonths ) || !daySettings[ 0 ] ||
[1912] Fix | Delete
( minDate && printDate < minDate ) || ( maxDate && printDate > maxDate );
[1913] Fix | Delete
tbody += "<td class='" +
[1914] Fix | Delete
( ( dow + firstDay + 6 ) % 7 >= 5 ? " ui-datepicker-week-end" : "" ) + // highlight weekends
[1915] Fix | Delete
( otherMonth ? " ui-datepicker-other-month" : "" ) + // highlight days from other months
[1916] Fix | Delete
( ( printDate.getTime() === selectedDate.getTime() && drawMonth === inst.selectedMonth && inst._keyEvent ) || // user pressed key
[1917] Fix | Delete
( defaultDate.getTime() === printDate.getTime() && defaultDate.getTime() === selectedDate.getTime() ) ?
[1918] Fix | Delete
[1919] Fix | Delete
// or defaultDate is current printedDate and defaultDate is selectedDate
[1920] Fix | Delete
" " + this._dayOverClass : "" ) + // highlight selected day
[1921] Fix | Delete
( unselectable ? " " + this._unselectableClass + " ui-state-disabled" : "" ) + // highlight unselectable days
[1922] Fix | Delete
( otherMonth && !showOtherMonths ? "" : " " + daySettings[ 1 ] + // highlight custom dates
[1923] Fix | Delete
( printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "" ) + // highlight selected day
[1924] Fix | Delete
( printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "" ) ) + "'" + // highlight today (if different)
[1925] Fix | Delete
( ( !otherMonth || showOtherMonths ) && daySettings[ 2 ] ? " title='" + daySettings[ 2 ].replace( /'/g, "&#39;" ) + "'" : "" ) + // cell title
[1926] Fix | Delete
( unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'" ) + ">" + // actions
[1927] Fix | Delete
( otherMonth && !showOtherMonths ? "&#xa0;" : // display for other months
[1928] Fix | Delete
( unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" +
[1929] Fix | Delete
( printDate.getTime() === today.getTime() ? " ui-state-highlight" : "" ) +
[1930] Fix | Delete
( printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "" ) + // highlight selected day
[1931] Fix | Delete
( otherMonth ? " ui-priority-secondary" : "" ) + // distinguish dates from other months
[1932] Fix | Delete
"' href='#' aria-current='" + ( printDate.getTime() === currentDate.getTime() ? "true" : "false" ) + // mark date as selected for screen reader
[1933] Fix | Delete
"' data-date='" + printDate.getDate() + // store date as data
[1934] Fix | Delete
"'>" + printDate.getDate() + "</a>" ) ) + "</td>"; // display selectable date
[1935] Fix | Delete
printDate.setDate( printDate.getDate() + 1 );
[1936] Fix | Delete
printDate = this._daylightSavingAdjust( printDate );
[1937] Fix | Delete
}
[1938] Fix | Delete
calender += tbody + "</tr>";
[1939] Fix | Delete
}
[1940] Fix | Delete
drawMonth++;
[1941] Fix | Delete
if ( drawMonth > 11 ) {
[1942] Fix | Delete
drawMonth = 0;
[1943] Fix | Delete
drawYear++;
[1944] Fix | Delete
}
[1945] Fix | Delete
calender += "</tbody></table>" + ( isMultiMonth ? "</div>" +
[1946] Fix | Delete
( ( numMonths[ 0 ] > 0 && col === numMonths[ 1 ] - 1 ) ? "<div class='ui-datepicker-row-break'></div>" : "" ) : "" );
[1947] Fix | Delete
group += calender;
[1948] Fix | Delete
}
[1949] Fix | Delete
html += group;
[1950] Fix | Delete
}
[1951] Fix | Delete
html += buttonPanel;
[1952] Fix | Delete
inst._keyEvent = false;
[1953] Fix | Delete
return html;
[1954] Fix | Delete
},
[1955] Fix | Delete
[1956] Fix | Delete
/* Generate the month and year header. */
[1957] Fix | Delete
_generateMonthYearHeader: function( inst, drawMonth, drawYear, minDate, maxDate,
[1958] Fix | Delete
secondary, monthNames, monthNamesShort ) {
[1959] Fix | Delete
[1960] Fix | Delete
var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear,
[1961] Fix | Delete
changeMonth = this._get( inst, "changeMonth" ),
[1962] Fix | Delete
changeYear = this._get( inst, "changeYear" ),
[1963] Fix | Delete
showMonthAfterYear = this._get( inst, "showMonthAfterYear" ),
[1964] Fix | Delete
selectMonthLabel = this._get( inst, "selectMonthLabel" ),
[1965] Fix | Delete
selectYearLabel = this._get( inst, "selectYearLabel" ),
[1966] Fix | Delete
html = "<div class='ui-datepicker-title'>",
[1967] Fix | Delete
monthHtml = "";
[1968] Fix | Delete
[1969] Fix | Delete
// Month selection
[1970] Fix | Delete
if ( secondary || !changeMonth ) {
[1971] Fix | Delete
monthHtml += "<span class='ui-datepicker-month'>" + monthNames[ drawMonth ] + "</span>";
[1972] Fix | Delete
} else {
[1973] Fix | Delete
inMinYear = ( minDate && minDate.getFullYear() === drawYear );
[1974] Fix | Delete
inMaxYear = ( maxDate && maxDate.getFullYear() === drawYear );
[1975] Fix | Delete
monthHtml += "<select class='ui-datepicker-month' aria-label='" + selectMonthLabel + "' data-handler='selectMonth' data-event='change'>";
[1976] Fix | Delete
for ( month = 0; month < 12; month++ ) {
[1977] Fix | Delete
if ( ( !inMinYear || month >= minDate.getMonth() ) && ( !inMaxYear || month <= maxDate.getMonth() ) ) {
[1978] Fix | Delete
monthHtml += "<option value='" + month + "'" +
[1979] Fix | Delete
( month === drawMonth ? " selected='selected'" : "" ) +
[1980] Fix | Delete
">" + monthNamesShort[ month ] + "</option>";
[1981] Fix | Delete
}
[1982] Fix | Delete
}
[1983] Fix | Delete
monthHtml += "</select>";
[1984] Fix | Delete
}
[1985] Fix | Delete
[1986] Fix | Delete
if ( !showMonthAfterYear ) {
[1987] Fix | Delete
html += monthHtml + ( secondary || !( changeMonth && changeYear ) ? "&#xa0;" : "" );
[1988] Fix | Delete
}
[1989] Fix | Delete
[1990] Fix | Delete
// Year selection
[1991] Fix | Delete
if ( !inst.yearshtml ) {
[1992] Fix | Delete
inst.yearshtml = "";
[1993] Fix | Delete
if ( secondary || !changeYear ) {
[1994] Fix | Delete
html += "<span class='ui-datepicker-year'>" + drawYear + "</span>";
[1995] Fix | Delete
} else {
[1996] Fix | Delete
[1997] Fix | Delete
// determine range of years to display
[1998] Fix | Delete
years = this._get( inst, "yearRange" ).split( ":" );
[1999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function