upgrade to different theme for main webpage
This commit is contained in:
@@ -126,6 +126,7 @@ function t(path, vars){
|
||||
} catch(err){
|
||||
result = parts[parts.length - 1].capitalize();
|
||||
}
|
||||
if(!result) return parts[parts.length - 1].capitalize();
|
||||
$.each(vars, function(v, value){ result = result.replace('%{'+v+'}', value)});
|
||||
return result;
|
||||
}
|
||||
@@ -147,7 +148,9 @@ function getUrlVars() {
|
||||
$(function(){
|
||||
if(getUrlVars().message){
|
||||
var container = $('.alert-success');
|
||||
container.find('div').text($translations[$locale]['messages'][getUrlVars().message] || ('Message ' + getUrlVars().message + ' not found'));
|
||||
// Prepend messages. if there is no path/period specified
|
||||
var message = t((getUrlVars().message.indexOf('.') > -1 ? '' : 'messages.' ) + getUrlVars().message )
|
||||
container.find('div').text(message);
|
||||
container.show();
|
||||
}
|
||||
if(getUrlVars().list_closed){
|
||||
|
||||
Reference in New Issue
Block a user