From 66b4e02c95f3a13a405b3d40c60eeea085578066 Mon Sep 17 00:00:00 2001 From: Myron Turner Date: Fri, 18 Oct 2019 16:52:04 -0500 Subject: [PATCH 1/2] moves javascript from admin.php to script.js --- admin.php | 65 +++++-------------------------------------------- plugin.info.txt | 2 +- script.js | 43 ++++++++++++++++++++++++++++++++ version | 2 +- 4 files changed, 51 insertions(+), 61 deletions(-) create mode 100755 script.js diff --git a/admin.php b/admin.php index 3d85347..fba6958 100644 --- a/admin.php +++ b/admin.php @@ -133,11 +133,11 @@ function get_edit_list() { ptln(""); } if(strlen($subst) > 80) { - ptln (""); + ptln (""); } else { - ptln (""); + ptln (""); } } @@ -154,83 +154,30 @@ function view_entries() { ptln(''); } - function js() { - -echo << - ///g,">"); - val = val.replace(/ - -JSFN; - - } /** * output appropriate html */ function html() { $this->macros_data = $this->get_macros(); - $this->js(); if($this->output) { ptln('
' . $this->output . '
'); } ptln('
'); ptln('
'); - ptln('    '); ptln('
'); ptln('

Info

'); ptln( $this->locale_xhtml('intro') . '
'); ptln('
'); - ptln('  '); - ptln('  '); - ptln('  '); ptln('