projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
handleNodeWithTeam now passes "AUTO" to the callback if the node in
[mkws-moved-to-github.git]
/
src
/
mkws-team.js
diff --git
a/src/mkws-team.js
b/src/mkws-team.js
index
4447457
..
d6fc49f
100644
(file)
--- a/
src/mkws-team.js
+++ b/
src/mkws-team.js
@@
-48,12
+48,12
@@
function team($, teamName) {
// The following PubSub code is modified from the jQuery manual:
// The following PubSub code is modified from the jQuery manual:
- // https://api.jquery.com/jQuery.Callbacks/
+ // http://api.jquery.com/jQuery.Callbacks/
//
// Use as:
// team.queue("eventName").subscribe(function(param1, param2 ...) { ... });
// team.queue("eventName").publish(arg1, arg2, ...);
//
// Use as:
// team.queue("eventName").subscribe(function(param1, param2 ...) { ... });
// team.queue("eventName").publish(arg1, arg2, ...);
-
+ //
var queues = {};
function queue(id) {
if (!queues[id]) {
var queues = {};
function queue(id) {
if (!queues[id]) {
@@
-240,6
+240,7
@@
function team($, teamName) {
that.reShow = function() {
that.reShow = function() {
+ resetPage();
m_paz.show(0, m_perpage, m_sortOrder);
};
m_paz.show(0, m_perpage, m_sortOrder);
};
@@
-603,7
+604,12
@@
function team($, teamName) {
teamName = teamName || m_teamName;
selector = $.map(selector.split(','), function(s, i) {
teamName = teamName || m_teamName;
selector = $.map(selector.split(','), function(s, i) {
- return s + '.mkwsTeam_' + teamName;
+ if (teamName === 'AUTO') {
+ return (s + '.mkwsTeam_' + teamName + ',' +
+ s + ':not([class^="mkwsTeam"],[class*=" mkwsTeam"])');
+ } else {
+ return s + '.mkwsTeam_' + teamName;
+ }
}).join(',');
var node = $(selector);
}).join(',');
var node = $(selector);