- Timestamp:
- 03/26/10 18:27:17 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin/UI.pm
r6913 r6944 45 45 $session, 46 46 name => 'UI', 47 version => '1.7. 1',47 version => '1.7.2', 48 48 puburl => '%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/ui', 49 49 author => 'see http://jqueryui.com/about', … … 59 59 ---++ ClassMethod init( $this ) 60 60 61 Initialize this plugin by adding the required static files to the html header61 Initialize this plugin by adding the required static files to the page 62 62 63 63 =cut … … 70 70 my $themeName = $Foswiki::cfg{JQueryPlugin}{JQueryTheme} || 'base'; 71 71 Foswiki::Plugins::JQueryPlugin::Plugins::createTheme($themeName); 72 73 # open matching localization file if it exists 74 my $langTag = $this->{session}->i18n->language(); 75 my $messagePath = $Foswiki::cfg{SystemWebName}.'/JQueryPlugin/i18n/ui.datepicker-'.$langTag.'.js'; 76 my $messageFile = $Foswiki::cfg{PubDir}.'/'.$messagePath; 77 if (-f $messageFile) { 78 my $text .= "<script type='text/javascript' src='$Foswiki::cfg{PubUrlPath}/$messagePath'></script>\n"; 79 Foswiki::Func::addToZone('body', "JQUERYPLUGIN::UI::LANG", $text, 'JQUERYPLUGIN::UI'); 80 } 72 81 } 73 82 1;
Note: See TracChangeset
for help on using the changeset viewer.
