TOC html

From Redazione
Jump to navigation Jump to search
Line 82: Line 82:
  
 
$ci('form').submit(function() {
 
$ci('form').submit(function() {
 +
 +
if(typeof tree == 'undefined') {
 +
return;
 +
}
 +
 +
var index_obj_saved = tree.toDict(true).children;
 +
 +
Frontend_Index.translate_index_rec(index_obj_saved,'to');
 +
 +
index_obj_saved = btoa(unescape(encodeURIComponent(index_obj_saved)))
 +
$ci('#TOC_contents').val(index_obj_saved)
  
  

Revision as of 21:36, 13 July 2020