留言板

gallery-aui-calendar-datepicker-select - styles trash page

Howard Miller,修改在12 年前。

gallery-aui-calendar-datepicker-select - styles trash page

New Member 发布: 1 加入日期: 12-3-8 最近的帖子
I hope I am posting this in the right place AND I'm not a js expert so please bear with me...

I am trying to use the date picker according to these instructions - http://www.yuiblog.com/blog/2010/06/18/alloy-date-selector/

The picker works perfectly. Unfortunately, it seems to have some nasty side effects. It seems to seek out all the divs on my page and add all sorts of additional classes. These classes all have css which completely trashes my page. As an aside the css also takes ages to download every time the page is displayed.

I'm not really sure what's going on and/or why it is doing this. Is there some way that I can restrict it to only dealing with the date selector?

Many thanks!
thumbnail
Mayur Patel,修改在12 年前。

RE: gallery-aui-calendar-datepicker-select - styles trash page

Expert 帖子: 358 加入日期: 10-11-17 最近的帖子
Hey Howard,

This is right place for this post,

As per my experience why this is happening because It's loading css and js from website that is 'yui.yahooapis.com'

  modules: {
        'gallery-aui-skin-base': {
            fullpath: 'http://yui.yahooapis.com/gallery-2010.06.07-17-52/build/gallery-aui-skin-base/css/
							gallery-aui-skin-base-min.css',
            type: 'css'
        },
        'gallery-aui-skin-classic': {
            fullpath: 'http://yui.yahooapis.com/gallery-2010.06.07-17-52/build/
							gallery-aui-skin-classic/css/
							gallery-aui-skin-classic-min.css',
            type: 'css',
            requires: ['gallery-aui-skin-base']
        }
    }


So, you can try to load all components from portlet itself else it will take time to load from site and it seems that is not the right way

Thanks