upgrade to different theme for main webpage
This commit is contained in:
@@ -5,7 +5,7 @@ root.Qsupplier=
|
||||
table_container = $('#section-table-'+table_id)
|
||||
section_container = $('.section-tables-active')
|
||||
section_container.append(table_container)
|
||||
Qsupplier.position_table_in_active_section(section_container, table_container)
|
||||
Qsupplier.position_table_in_active_section(section_container, table_container, true)
|
||||
|
||||
# Set the section id of the table in the database
|
||||
$.ajax(
|
||||
@@ -165,3 +165,6 @@ root.Qsupplier=
|
||||
if table.needs_help then to.addClass('needs_help') else to.removeClass('needs_help')
|
||||
if table.needs_payment then to.addClass('needs_payment') else to.removeClass('needs_payment')
|
||||
)
|
||||
add_tables_to_active_section: ->
|
||||
number_start = $('#add-tables-number-start')
|
||||
number_end = $('#add-tables-number-end')
|
||||
|
||||
@@ -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