Skip to content

Commit

Permalink
Item12656: fixed documentation
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@17096 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Nov 15, 2013
1 parent 83794b9 commit 06135dd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion JQueryPlugin/data/System/VarJQREQUIRE.txt
Expand Up @@ -6,7 +6,8 @@
the list of available and active plugins. While loading a plugin, additional plugins it may depend on are loaded as well.
Information about these dependencies is stored within the plugins themselves and can't be changed. Dependencies also make
sure the javascript code is added to the html page in the right order. It uses [[VarADDTOZONE][ADDTOZONE]]
to aggregate javascript and css at the right place on the html page.
to aggregate javascript and css at the right place on the html page.
* Note: in case of an error JQREQUIRE will produce an inline HTML error message.
* Parameters:
| *Parameter:* | *Description:* | *Default:* |
| "plugin[, plugin, plugin]" | list of plugins to be loaded | |
Expand Down
8 changes: 5 additions & 3 deletions JQueryPlugin/data/System/VarJQTHEME.txt
Expand Up @@ -2,13 +2,15 @@
%META:TOPICPARENT{name="JQueryPlugin"}%
#VarJQTHEME
---+++ JQTHEME{"name" ...} -- switch jQuery UI theme
* Foswiki's default UI theme is configured in =$Foswiki::cfg{JQueryPlugin}{JQueryTheme}= and defaults to =base=.
* Foswiki's default UI theme is configured in =$Foswiki::cfg{JQueryPlugin}{JQueryTheme}= and defaults to =foswiki=.
Use [[%SCRIPTURLPATH{"configure"}%][configure]] to change this site wide. Use JQTHEME if you decide to use a different
theme on the current page.
* Note: some Foswiki skins may come with their own jQuery UI matching the overall user experience of the web design.
* Note: in case of an error JQTHEME will produce an inline HTML error message.
* Parameters:
| *Parameter:* | *Description:* | *Default:* |
| "name" | name of theme: !JQueryPlugin knows the following themes =base=, =lightness=, =redmod=, =smoothness=; \
additional themes maybe created using the [[http://jqueryui.com/themeroller/][themeroller]] and installed to \
=%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/$name= | base |
* Related: JQueryUI
=%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/$name= | foswiki |
| warn | (on/off) allows you to switch off warnings when a theme was not found | on |
* Related: [[JQueryUI]], [[VarJQREQUIRE]]
4 changes: 2 additions & 2 deletions JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin.pm
Expand Up @@ -277,10 +277,10 @@ sub handleJQueryTheme {
my $themeName = $params->{_DEFAULT}
|| $Foswiki::cfg{JQueryPlugin}{JQueryTheme};

my $warn = $params->{warn} || '';
my $warn = Foswiki::Func::isTrue( $params->{warn}, 1 );

return _inlineError("No such theme $themeName")
if !createTheme($themeName) && $warn ne 'off';
if !createTheme($themeName) && $warn;

return '';
}
Expand Down

0 comments on commit 06135dd

Please sign in to comment.