mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
Removed user_language property from FHC_JS_DATA_STORAGE_OBJECT
To persist on a consistent translation system, the translation should be performed by phrases system on serversite. Therefore the user_language property is removed from FHC_JS_DATA_STORAGE_OBJECT.
This commit is contained in:
@@ -78,8 +78,7 @@ function generateJSDataStorageObject($indexPage, $calledPath, $calledMethod)
|
|||||||
app_root: "'.APP_ROOT.'",
|
app_root: "'.APP_ROOT.'",
|
||||||
ci_router: "'.$indexPage.'",
|
ci_router: "'.$indexPage.'",
|
||||||
called_path: "'.$calledPath.'",
|
called_path: "'.$calledPath.'",
|
||||||
called_method: "'.$calledMethod.'",
|
called_method: "'.$calledMethod.'"
|
||||||
user_language: "'.$user_language.'"
|
|
||||||
};';
|
};';
|
||||||
$toPrint .= "\n";
|
$toPrint .= "\n";
|
||||||
$toPrint .= '</script>';
|
$toPrint .= '</script>';
|
||||||
|
|||||||
@@ -563,7 +563,7 @@ var FHC_TableWidget = {
|
|||||||
tableWidgetDiv.find('#tableWidgetHeader').append(tabulatorHeaderHTML);
|
tableWidgetDiv.find('#tableWidgetHeader').append(tabulatorHeaderHTML);
|
||||||
|
|
||||||
// Render the collapsable div triggered by button in tableWidgetHeader
|
// Render the collapsable div triggered by button in tableWidgetHeader
|
||||||
var tabulatorHeaderCollapseHTML = _renderTabulatorHeaderCollapseHTML(tableWidgetDiv, FHC_JS_DATA_STORAGE_OBJECT.user_language);
|
var tabulatorHeaderCollapseHTML = _renderTabulatorHeaderCollapseHTML(tableWidgetDiv);
|
||||||
tableWidgetDiv.find('#tableWidgetHeader').after(tabulatorHeaderCollapseHTML);
|
tableWidgetDiv.find('#tableWidgetHeader').after(tabulatorHeaderCollapseHTML);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -777,7 +777,7 @@ function _renderTabulatorHeaderHTML(tableWidgetDiv){
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Returns collapsable HTML element for TableWidget header buttons
|
// Returns collapsable HTML element for TableWidget header buttons
|
||||||
function _renderTabulatorHeaderCollapseHTML(tableWidgetDiv, language){
|
function _renderTabulatorHeaderCollapseHTML(tableWidgetDiv){
|
||||||
|
|
||||||
var tableUniqueId = tableWidgetDiv.attr('tableUniqueId');
|
var tableUniqueId = tableWidgetDiv.attr('tableUniqueId');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user