Mercurial > sat_docs
annotate printable_cards/xhtml/cmc/specimen_files/easytabs.js @ 42:bbb900a768ea
xeps: updated xep-0355 (namespace delegation):
Several updates according to feedbacks:
- Added attribute filtering, mainly to manage correctly MAM
- Simplification of configuration in admin mode: no more <iq/> negociation
- Delegations notifications to the managing entity are now done with a <message/> stanza
- Forwarding now use XEP-0297 to avoid server to parse every stanza and a to have a cleaner separation
- The behaviour when managing entity is unavailable is specified
- Use of namespace in field var for client mode negociation is now mandatory
- Behaviour when managing a delegation kept between session in client mode, when managing entity is not available, is specified
- Implementation note added for in-order processing issue (thanks to Kurt Zeilenga for pointing this)
- Added an note for discovery nesting with attribute filtering
- Updated namespace to reflect incompatible changes
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 21 Mar 2015 20:07:46 +0100 |
parents | dfc5c6be7761 |
children |
rev | line source |
---|---|
5
dfc5c6be7761
add xhtml template for printing "business" (visiting) cards:
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
1 (function($){$.fn.easyTabs=function(option){var param=jQuery.extend({fadeSpeed:"fast",defaultContent:1,activeClass:'active'},option);$(this).each(function(){var thisId="#"+this.id;if(param.defaultContent==''){param.defaultContent=1;} |
dfc5c6be7761
add xhtml template for printing "business" (visiting) cards:
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
2 if(typeof param.defaultContent=="number") |
dfc5c6be7761
add xhtml template for printing "business" (visiting) cards:
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
3 {var defaultTab=$(thisId+" .tabs li:eq("+(param.defaultContent-1)+") a").attr('href').substr(1);}else{var defaultTab=param.defaultContent;} |
dfc5c6be7761
add xhtml template for printing "business" (visiting) cards:
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
4 $(thisId+" .tabs li a").each(function(){var tabToHide=$(this).attr('href').substr(1);$("#"+tabToHide).addClass('easytabs-tab-content');});hideAll();changeContent(defaultTab);function hideAll(){$(thisId+" .easytabs-tab-content").hide();} |
dfc5c6be7761
add xhtml template for printing "business" (visiting) cards:
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
5 function changeContent(tabId){hideAll();$(thisId+" .tabs li").removeClass(param.activeClass);$(thisId+" .tabs li a[href=#"+tabId+"]").closest('li').addClass(param.activeClass);if(param.fadeSpeed!="none") |
dfc5c6be7761
add xhtml template for printing "business" (visiting) cards:
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
6 {$(thisId+" #"+tabId).fadeIn(param.fadeSpeed);}else{$(thisId+" #"+tabId).show();}} |
dfc5c6be7761
add xhtml template for printing "business" (visiting) cards:
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
7 $(thisId+" .tabs li").click(function(){var tabId=$(this).find('a').attr('href').substr(1);changeContent(tabId);return false;});});}})(jQuery); |