projects
/
mkdru-moved-to-drupal.org.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix dropdowns, start improving markup.
[mkdru-moved-to-drupal.org.git]
/
mkdru.theme.js
diff --git
a/mkdru.theme.js
b/mkdru.theme.js
index
2183e1c
..
df09df4
100644
(file)
--- a/
mkdru.theme.js
+++ b/
mkdru.theme.js
@@
-1,6
+1,6
@@
Drupal.theme.prototype.mkdruResult = function(hit, num) {
var html = [];
Drupal.theme.prototype.mkdruResult = function(hit, num) {
var html = [];
- html.push('<div class="record" id="recdiv_' + hit.recid + '" >'
+ html.push('<li class="record" id="recdiv_' + hit.recid + '" >'
+ '<span>' + num + '. </span>'
+ '<a href="#" id="rec_' + hit.recid
+ '"><b>'
+ '<span>' + num + '. </span>'
+ '<a href="#" id="rec_' + hit.recid
+ '"><b>'
@@
-11,16
+11,11
@@
Drupal.theme.prototype.mkdruResult = function(hit, num) {
if (hit["md-title-responsibility"] !== undefined) {
html.push('<span><i>'+hit["md-title-responsibility"]+'</i></span>');
}
if (hit["md-title-responsibility"] !== undefined) {
html.push('<span><i>'+hit["md-title-responsibility"]+'</i></span>');
}
- html.push('</div>');
+ html.push('</li>');
return (html.join(''));
};
Drupal.theme.prototype.mkdruPager = function (data, curPage, pages) {
return (html.join(''));
};
Drupal.theme.prototype.mkdruPager = function (data, curPage, pages) {
- var caption = '<hr/><div style="float: right">Displaying: '
- + (data.start + 1) + ' to ' + (data.start + data.num) +
- ' of ' + data.merged + ' (found: '
- + data.total + ')</div>';
-
var onsides = 6;
var firstClkbl = ( curPage - onsides > 0 )
var onsides = 6;
var firstClkbl = ( curPage - onsides > 0 )
@@
-46,9
+41,9
@@
Drupal.theme.prototype.mkdruPager = function (data, curPage, pages) {
+ numLabel + ' </a>';
}
+ numLabel + ' </a>';
}
- var next = '<b> | </b><span id="next">Next >></span>';
+ var next = ' | <span id="next">Next >></span>';
if (pages - curPage > 0)
if (pages - curPage > 0)
- var next = '<b> | </b><a href="#" class="mkdru-next">'
+ var next = ' | <a href="#" class="mkdru-next">'
+'Next >></a>';
predots = '';
+'Next >></a>';
predots = '';
@@
-59,8
+54,7
@@
Drupal.theme.prototype.mkdruPager = function (data, curPage, pages) {
if (lastClkbl < pages)
postdots = '...';
if (lastClkbl < pages)
postdots = '...';
- return ('<div style="float: clear">' +
- caption + prev + predots + middle + postdots + next + '</div><hr/>');
+ return (prev + predots + middle + postdots + next);
};
Drupal.theme.prototype.mkdruTerm = function (term, freq, linkClass, id) {
};
Drupal.theme.prototype.mkdruTerm = function (term, freq, linkClass, id) {