}
m_filters = []
- redrawNavi();
- resetPage();
- loadSelect();
triggerSearch(query, sortOrder, targets);
switchView('records'); // In case it's configured to start off as hidden
m_submitted = true;
function onSortChange()
{
+ m_sortOrder = findnode('.mkwsSort').val();
if (!m_submitted) return false;
resetPage();
- loadSelect();
m_paz.show(0, m_perpage, m_sortOrder);
return false;
}
function onPerpageChange()
{
+ m_perpage = findnode('.mkwsPerpage').val();
if (!m_submitted) return false;
resetPage();
- loadSelect();
m_paz.show(0, m_perpage, m_sortOrder);
return false;
}
}
- function loadSelect ()
- {
- var node = findnode('.mkwsSort');
- if (node.length && node.val() != m_sortOrder) {
- debug("changing m_sortOrder from " + m_sortOrder + " to " + node.val());
- m_sortOrder = node.val();
- }
- node = findnode('.mkwsPerpage');
- if (node.length && node.val() != m_perpage) {
- debug("changing m_perpage from " + m_perpage + " to " + node.val());
- m_perpage = node.val();
- }
- }
-
-
function triggerSearch (query, sortOrder, targets)
{
+ resetPage();
+ redrawNavi();
+
var pp2filter = "";
var pp2limit = "";
{
debug("limitTarget(id=" + id + ", name=" + name + ")");
m_filters.push({ id: id, name: name });
- redrawNavi();
- resetPage();
- loadSelect();
triggerSearch();
return false;
}
{
debug("limitQuery(field=" + field + ", value=" + value + ")");
m_filters.push({ field: field, value: value });
- redrawNavi();
- resetPage();
- loadSelect();
triggerSearch();
return false;
}
}
m_filters = newFilters;
- redrawNavi();
- resetPage();
- loadSelect();
triggerSearch();
return false;
}
}
m_filters = newFilters;
- redrawNavi();
- resetPage();
- loadSelect();
triggerSearch();
return false;
}