Commit 0e425597 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Slightly more useful error message :)

parent 4d96561c
......@@ -60,7 +60,7 @@ function CollapsableTree(data, source) {
p.child = ul;
}
else {
var oops = P(null, 'omgwtfnothinghere');
var oops = P({'class': 'emptycontainer'}, get_string('nochildren'));
appendChildNodes(p, oops);
p.child = oops;
}
......
......@@ -43,6 +43,7 @@ $string['stopdate'] = 'Access End Date/Time';
$string['stopdate'] = 'Access End Date/Time';
$string['ownerformat'] = 'Name display format';
$string['ownerformatdescription'] = 'This field controls what appears in the author field for the template you select in step 2';
$string['nochildren'] = 'no artefacts';
$string['category.all'] = 'All Templates';
$string['category.resume'] = 'Resume Templates';
......
......@@ -231,7 +231,12 @@ function jsstrings() {
'prevpage',
'lastpage',
)
)
),
'collapsabletree' => array(
'view' => array(
'nochildren',
),
),
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment