Skip to content

Commit

Permalink
tempus-dominus-v5 is marked as deprecated; code clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
solomax committed Sep 25, 2023
1 parent 86ae526 commit b4e2110
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

/**
* Represents Popper.js library.
*
* @author Jan Ferko
*/
public class PopperJavaScriptReference extends WebjarsJavaScriptResourceReference {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* @author Alexey Volkov
* @since 01.02.2015
*/
@Deprecated
public abstract class AbstractDateTimePickerWithIcon<T> extends FormComponentPanel<T> {

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* @author Alexey Volkov
* @since 01.02.2015
*/
@Deprecated
public class DatetimePicker extends DateTextField {

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* @author Alexey Volkov
* @since 01.02.2015
*/
@Deprecated
public class DatetimePickerBehavior extends BootstrapJavascriptBehavior {

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* @since 02.02.2015
* @see <a href="http://eonasdan.github.io/bootstrap-datetimepicker/Options/">JS widget options</a>
*/
@Deprecated
public class DatetimePickerConfig extends AbstractConfig {

public enum ViewModeType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* @author Alexey Volkov
* @since 07.02.15
*/
@Deprecated
public class DatetimePickerIconConfig extends AbstractConfig {

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* @author Alexey Volkov
* @since 01.02.2015
*/
@Deprecated
public class LocalDateTimePicker extends LocalDateTimeTextField {

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

/**
* datetime picker icon config
*
* @author Alexey Volkov
* @since 07.02.15
*/
public class TempusDominusIconConfig extends AbstractConfig {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
function createTempusDominus(elementId, config, localization, lng, events) {
function createTempusDominus(elementId, config, localization, lang, events) {
const el = document.getElementById(`${elementId}`);
let defLocalization = {};
if (tempusDominus.locales) {
const fullName = localization.locale.replace('-', '_');
const locale = tempusDominus.locales[fullName] || tempusDominus.locales[lng];
const locale = tempusDominus.locales[fullName] || tempusDominus.locales[lang];
defLocalization = locale ? locale.localization : {};
}
config.localization = Object.assign({}, defLocalization, localization);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
* @author Alexey Volkov
* @since 01.02.15
*/
@Deprecated
@MountPath(value = "/datetimepicker")
public class DatetimePickerPage extends BasePage {
private static final long serialVersionUID = 1L;
Expand Down

0 comments on commit b4e2110

Please sign in to comment.