Rename control files

This commit is contained in:
Deon George 2022-04-16 16:06:33 +10:00
parent aae10fbc36
commit aa8aadfae7
4 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ load('scrollbar.js');
load('event-timer.js'); load('event-timer.js');
load('graphic.js'); load('graphic.js');
var CONTROL_EDIT = '1'; var CONTROL_FRAMEEDIT = '1';
function edit(fo) { function edit(fo) {
log(LOG_DEBUG,'+ Control EDIT loaded'); log(LOG_DEBUG,'+ Control EDIT loaded');

View File

@ -829,7 +829,7 @@ while(bbs.online) {
break; break;
} }
require('ansitex/load/edit.js','CONTROL_EDIT'); require('ansitex/load/control-frameedit.js','CONTROL_FRAMEEDIT');
// If we are editing a specific frame, attempt to load it // If we are editing a specific frame, attempt to load it
if (next_page) { if (next_page) {
@ -1037,12 +1037,12 @@ while(bbs.online) {
// If this is the register page // If this is the register page
if (fo.page === pageStr(REGISTER_FRAME)) { if (fo.page === pageStr(REGISTER_FRAME)) {
log(LOG_DEBUG,'Adding REGISTER to control stack'); log(LOG_DEBUG,'Adding REGISTER to control stack');
require('ansitex/load/'+fo.key[1]+'.js','CONTROL_REGISTER'); require('ansitex/load/control-'+fo.key[1]+'.js','CONTROL_REGISTER');
control.push(eval("new "+fo.key[1]+'();')); control.push(eval("new "+fo.key[1]+'();'));
} else if (fo.page === pageStr(SQRL_FRAME)) { } else if (fo.page === pageStr(SQRL_FRAME)) {
log(LOG_DEBUG,'Adding SQRL to control stack'); log(LOG_DEBUG,'Adding SQRL to control stack');
require('ansitex/load/'+fo.key[1]+'.js','CONTROL_SQRL'); require('ansitex/load/control-'+fo.key[1]+'.js','CONTROL_SQRL');
control.push(eval("new "+fo.key[1]+'();')); control.push(eval("new "+fo.key[1]+'();'));
break; break;