Post your bug reports here
[EXTENSION] Date picker (jQuery UI based)
#2
Posted 04 December 2008 - 03:56 PM
Quote
DIRECTORY_SEPARATOR comes from Yii's core, right? is it directly available to extensions or do we need to use it like Yii::DIRECTORY_SEPARATOR or something like that? Is it working on Windows?
#4
Posted 04 December 2008 - 04:47 PM
#5
Posted 04 December 2008 - 10:29 PM
#6
Posted 05 December 2008 - 12:48 AM
Quote
It currently works only with two letters code, a workaround is to rename the zh-CN or zh-TW to zh as needed.
Quote
You would need to alter or create a theme. Take a look at this theme found in the jQuery UI demo page.
Quote
Did you try the [tt]dateFormat[/tt] configuration parameter?
#7
Posted 05 December 2008 - 01:10 AM
Quote
Ok, you found a bug here. It's fixed in 1.1. Thanks
Please update the widget!
#8
Posted 05 December 2008 - 01:48 AM
#9
Posted 05 December 2008 - 07:16 AM
#11
Posted 05 December 2008 - 08:59 AM
http://www.talkphp.c...-necessary.html
http://us2.php.net/m...ystem.php#73954
http://marc.info/?l=...76927027525&w=2
It seems that, at least in recent PHPs. there's no need for [tt]DIRECTORY_SEPARATOR[/tt] after all, and using [tt]/[/tt] will work just fine.
hellowayne, could you provide details? which PHP version are you using? which server?
#12
Posted 05 December 2008 - 09:04 AM
so the path will become something like
/assets/edd489d9\ui\i18n\ui.datepicker-en.js . why do not just use '/' ? is there any good reason to use DIRECTORY_SEPARATOR for create url path?
#14
Posted 05 December 2008 - 09:23 AM
Quote
so the path will become something like
/assets/edd489d9\ui\i18n\ui.datepicker-en.js . why do not just use '/' ? is there any good reason to use DIRECTORY_SEPARATOR for create url path?
Ok, I see where the problem is. It has nothing to do with a malfunction in DIRECTORY_SEPARATOR, but with its use in the URL registration. Fixed in 1.3. Thanks.
#15
Posted 06 December 2008 - 07:44 AM
do you think is possible ? i think is can be achieved by registered a piece of javascript code. i did a test when i change the font-size using piece of javacode, the datepicker panel changed.
add one line code in run function as following
public function run()
{...
$cs->registerScript(get_class($this).'_'.$id, $js);
$cs->registerScript('theme-panel-size','jQuery("#ui-datepicker-div").css("font-size","0.5em")');
echo $html;
}
therefore i do believe the datepicker panel size can be customized as well. just like set language, theme ect. what do you think?
#18
Posted 07 December 2008 - 02:08 PM
There are several other effects, but they don't seem to work when included with the example code code (see the [tt]showAnim[/tt] option)
#19
Posted 08 December 2008 - 04:10 PM
$this->widget(
'application.extensions.juidatepicker.EDatePicker',
array(
'model' => $form,
'attribute' => 'birthdate'
)
);
Where $form is an instance of CFormModel.
And then I get the following error:
The asset "<snip>\protected\extensions\juidatepicker\jquery" to be pulished does not exist.
I guess I'd be able to fix this by adding a jquery directory and appropriate files, but is that really how I should do it, since I believe that jQuery is part of the core of this framework? Please forgive my n00bness.
#20
Posted 08 December 2008 - 05:18 PM
you need to do a [tt]tar xzvf juidatepicker-1.5.tar.gz[/tt] (or use Winzip, since as I guess you're on Windows) to extract the contents of the tarball inside a directory called [tt]extensions[/tt] in your project's [tt]protected[/tt] directory (this is just a convention). This will create a [tt]jquery[/tt] directory inside the extension directory, and this last one will contain the jquery plugin which renders the calendar, and some CSS and images for the look and feel. Make sure that you're extracting all the files using "original paths". Let me know if this works for you.

Help













