This repository has been archived by the owner on Dec 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added jQueryUI specific accordion for 1.10.x
- Loading branch information
Richard Edwards
committed
Feb 26, 2015
1 parent
90c8c87
commit e305cdb
Showing
13 changed files
with
140 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div style="overflow:auto;[HEIGHT_STYLE][WIDTH_STYLE]" class="[IFQS_THEME][QS_THEME][/IFQS_THEME][IFNOTQS_THEME][THEME][/IFNOTQS_THEME]"> | ||
<div id="[UNIQUE]Accordion"> | ||
[TABSTRIP] | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div style="[OVERFLOW_STYLE][WIDTH_STYLE]" class="[THEME]" style="margin-top:3px;"> | ||
<a href="#" class="fg-button fg-button-icon-left ui-state-default ui-corner-all" onclick="[UNIQUE]SelectPrevTab();"><span class="ui-icon ui-icon-circle-triangle-w"></span>Prev</a> | ||
<a href="#" class="fg-button fg-button-icon-right ui-state-default ui-corner-all" onclick="[UNIQUE]SelectNextTab();"><span class="ui-icon ui-icon-circle-triangle-e"></span>Next</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[REQUIRESJQUERYUI] | ||
<input id="[UNIQUE]SelectedElementId" name="[UNIQUE]SelectedElementId" type="hidden" value="[UNIQUE]Tab[SELECTEDTABNUMBER]" /> | ||
<link rel="stylesheet" href="[SKINBASEFOLDER]/_themes/[IFQS_THEME][QS_THEME][/IFQS_THEME][IFNOTQS_THEME][THEME][/IFNOTQS_THEME]/ui.all.css" type="text/css" media="all" /> | ||
<script type="text/javascript"> | ||
jQuery(document).ready(function(){ | ||
var $accordion = jQuery('#[UNIQUE]Accordion').accordion({[IFACTIVEHOVER value="True"]event: 'mouseover',[/IFACTIVEHOVER] [IFSTARTCOLLAPSED value="True"] active: false, [/IFSTARTCOLLAPSED] heightStyle: '[HEIGHTSTYLE]', collapsible: [COLLAPSIBLE]}); | ||
$accordion.bind("accordionchange", function(event, ui) { [UNIQUE]AccordionChangeCallback(event, ui); }); | ||
|
||
[IFSTARTCOLLAPSED value="False"][UNIQUE]SelectTab([SELECTEDTABNUMBER],'');[/IFSTARTCOLLAPSED] | ||
}); | ||
|
||
function [UNIQUE]Initialize() | ||
{ | ||
// needs to be here for Aggregator to function but doesn't need to do anything | ||
} | ||
|
||
function [UNIQUE]SelectTab(tabNumber,source) | ||
// SelectTab - select a specific tab#, source=tabmodule selecting | ||
{ | ||
jQuery('#[UNIQUE]Accordion').accordion('option', 'active', tabNumber-1); | ||
[UNIQUE]UpdateSelectedTab(tabNumber); | ||
[SELECTTARGET] | ||
} | ||
|
||
function [UNIQUE]AccordionChangeCallback(event, ui) { | ||
var index = jQuery('#[UNIQUE]Accordion').find("h3").index(ui.newHeader[0]); | ||
[UNIQUE]UpdateSelectedTab(index+1); | ||
} | ||
|
||
function [UNIQUE]UpdateSelectedTab(tabNumber) | ||
// UpdateSelectedTab - update hidden value and cookie to remember selection across pages, postbacks | ||
{ | ||
// set hidden input value to the new tab | ||
document.getElementById('[UNIQUE]SelectedElementId').value=tabNumber; | ||
[SAVEACTIVETAB] | ||
} | ||
|
||
function [UNIQUE]SelectNextTab() | ||
// SelectNextTab - select the next tab | ||
{ | ||
// not currently supported | ||
} | ||
|
||
function [UNIQUE]SelectPrevTab() | ||
// SelectPrevTab - select the previous tab | ||
{ | ||
// not currently supported | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0"?> | ||
<settings> | ||
<description> | ||
<![CDATA[ | ||
<strong>jQuery UI Accordion</strong> - based on the jQuery UI Accordion<br /> | ||
]]> | ||
</description> | ||
<help> | ||
<![CDATA[ | ||
<h2>Compatibility notes</h2> | ||
<ul> | ||
<li>Active Hover Delay - not currently supported</li> | ||
<li>Pager - not currently supported</li> | ||
</ul> | ||
]]> | ||
</help> | ||
<properties> | ||
<property name="Theme" type="Directory" caption="JQuery UI Theme" default="flick" directory="Skins/jQueryUI/_themes"> | ||
<help>The jQuery UI theme used to style the tabs</help> | ||
</property> | ||
<property name="HeightStyle" type="Choice" caption="Height Style" default="auto"> | ||
<help>Determines how panels are sized</help> | ||
<choices> | ||
<choice value="auto" caption="Auto" /> | ||
<choice value="content" caption="Content" /> | ||
<choice value="fill" caption="Fill" /> | ||
</choices> | ||
</property> | ||
<property name="Collapsible" type="Boolean" caption="Collapsible" default="false"> | ||
<help>Determines whether all the sections can be closed at once</help> | ||
</property> | ||
<property name="StartCollapsed" type="Boolean" caption="Start Collapsed" default="false"> | ||
<help>If collapsible is set, this will start with all sections closed</help> | ||
</property> | ||
</properties> | ||
<tabproperties> | ||
</tabproperties> | ||
</settings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h3><a href="#[UNIQUE][TABNUMBER]">[TABCAPTION]</a></h3> | ||
[TABPAGE] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div>[TABPAGECONTENT]</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[TABS] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
|
||
## 06.04.09 | ||
|
||
19/Dec/2014 | ||
## 06.04.10 | ||
|
||
12/Feb/2015 | ||
|
||
* Fixes | ||
* Minor theme styling fixes | ||
* Added a jQueryUI 1.10.x specific version of the jQuery Accordion - in the list as Accordion_1_10 | ||
|
||
|
||
For additional release history please visit the [documentation](http://docs.dnnstuff.com/pages/aggregator). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters