Skip to content

Commit

Permalink
#672 use the same libraries as <b:dateTimePicker>; get rid of momen…
Browse files Browse the repository at this point in the history
…t.js (for favor of moment-all-languages.js)
  • Loading branch information
stephanrauh committed Aug 4, 2019
1 parent f14cf03 commit 4be04f5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 20 deletions.
1 change: 0 additions & 1 deletion gradleResources/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
from 'staticResources/js/jquery.inputmask.bundle.min.js'
from 'staticResources/js/jquery.scrollUp.min.js'
from 'staticResources/js/jquery.minicolors.min.js'
from 'staticResources/js/moment.min.js'
from 'staticResources/js/select2.min.js'
from 'staticResources/js/typeahead.js'
from 'staticResources/ie8support/respond.js'
Expand Down
7 changes: 0 additions & 7 deletions gradleResources/staticResources/js/moment.min.js

This file was deleted.

7 changes: 0 additions & 7 deletions mavenResources/META-INF/resources/bsf/js/moment.min.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
* @author jottyfan
*
*/
@ResourceDependencies({ @ResourceDependency(library = "bsf", name = "js/moment.min.js", target = "head"),
@ResourceDependency(library = "bsf", name = "js/fullcalendar.min.js", target = "head"),
@ResourceDependency(library = "bsf", name = "js/fullcalendar-lang-all.js", target = "head")})
@ListenersFor({ @ListenerFor(systemEventClass = PostAddToViewEvent.class) })
@FacesComponent(FullCalendar.COMPONENT_TYPE)
public class FullCalendar extends FullCalendarCore implements net.bootsfaces.render.IHasTooltip, net.bootsfaces.render.IResponsive {
Expand All @@ -37,9 +34,12 @@ public class FullCalendar extends FullCalendarCore implements net.bootsfaces.ren

public FullCalendar() {
Tooltip.addResourceFiles();
AddResourcesListener.addBasicJSResource(C.BSF_LIBRARY, "js/moment-with-locales.min.js");
AddResourcesListener.addResourceToHeadButAfterJQuery(C.BSF_LIBRARY, "js/fullcalendar.min.js");
AddResourcesListener.addResourceToHeadButAfterJQuery(C.BSF_LIBRARY, "js/fullcalendar-lang-all.js");

AddResourcesListener.addThemedCSSResource("core.css");
//AddResourcesListener.addThemedCSSResource("bsf.css");
AddResourcesListener.addExtCSSResource("fullcalendar.min.css");
AddResourcesListener.addExtCSSResource("fullcalendar.min.css");
setRendererType(DEFAULT_RENDERER);
}

Expand Down

0 comments on commit 4be04f5

Please sign in to comment.