Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
c1006530
Commit
c1006530
authored
Sep 03, 2009
by
Richard Mansfield
Browse files
Don't assign paginator to a variable - it breaks the artefact chooser
parent
a7023d89
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/web.php
View file @
c1006530
...
...
@@ -2790,7 +2790,7 @@ function build_pagination($params) {
$datatable
=
json_encode
(
$params
[
'datatable'
]);
$jsonscript
=
json_encode
(
$params
[
'jsonscript'
]);
$extradata
=
json_encode
(
$params
[
'extradata'
]);
$js
.
=
"
var
{
$params
[
'datatable'
]
}
_pager =
new Paginator(
$id
,
$datatable
,
$jsonscript
,
$extradata
);"
;
$js
.
=
"new Paginator(
$id
,
$datatable
,
$jsonscript
,
$extradata
);"
;
}
// Output the count of results
...
...
htdocs/tags.php
View file @
c1006530
...
...
@@ -46,7 +46,7 @@ if ($tag) {
$js
=
<<<EOF
addLoadEvent(function() {
{$data->pagination_js}
var p =
{$data->pagination_js}
forEach(getElementsByTagAndClassName('a', 'tag', 'main-column-container'), function(elem) {
disconnectAll(elem);
connect(elem, 'onclick', function(e) {
...
...
@@ -54,7 +54,7 @@ addLoadEvent(function() {
var href = getNodeAttribute(this, 'href');
var params = parseQueryString(href.substring(href.indexOf('?')+1, href.length));
sendjsonrequest(config.wwwroot + 'json/tagsearch.php', params, 'POST', function(data) {
results_pager
.updateResults(data);
p
.updateResults(data);
forEach(getElementsByTagAndClassName('a', 'selected', 'main-column-container'), function(selected) {
removeElementClass(selected, 'selected');
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment