r2165 - fix the annoying JS message
authorDenis Ovsienko <infrastation@yandex.ru>
Thu, 21 Aug 2008 18:58:59 +0000 (18:58 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Thu, 21 Aug 2008 18:58:59 +0000 (18:58 +0000)
 - update ChangeLog

ChangeLog
inc/interface.php
index.php
pi.css

index c1ced05c1b742dd8c991978f24ac9d5cd347481a..41d77e192082ea798fdf464091d91259b6d6e907 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 0.16.3
        new feature: tell line number for lexical and syntax errors
+       new feature: CodePress editor enables line numbers and syntax
+               highlightling for RackCode editing
+       bugfix: tags are now properly displayed for users
+       bugfix: the JavaScript error isn't generated any more (fix by Aaron)
 0.16.2 2008-08-21
        bugfix: IP address picker was broken
        bugfix: more message processing fixes
index a872efc4e7ebd988cf2fc8dc9d9e32cbfa6ad70f..07170309591e0452eb271f1d4927c5b8c4753dab 100644 (file)
@@ -2053,6 +2053,18 @@ function renderIPv4SpaceEditor ()
        global $root, $pageno, $tabno;
        showMessageOrError();
 
+       // IPv4 validator
+?>
+       <script type="text/javascript">
+       function init() {
+               document.add_new_range.range.setAttribute('match', "^\\d\\d?\\d?\\.\\d\\d?\\d?\\.\\d\\d?\\d?\\.\\d\\d?\\d?\\/\\d\\d?$");
+
+               Validate.init();
+       }
+       window.onload=init;
+       </script>
+<?php
+
        startPortlet ("Add new");
        echo '<table border=0 cellpadding=10 align=center>';
        // This form requires a name, so JavaScript validator can find it.
index abc907838d339b3e08b9540cda9c85f07e88f70e..da9c9c73576ad790da88166802c1380f421a0b23 100644 (file)
--- a/index.php
+++ b/index.php
@@ -28,24 +28,9 @@ foreach (array ('F', 'A', 'U', 'T', 'Th', 'Tw', 'Thw') as $statecode)
        echo "}\n\n";
 }
 ?>
-.validation-error {
-       border:1px solid red;
-}
-
-.validation-success {
-       border:1px solid green;
-}
        </style>
        <script language='javascript' type='text/javascript' src='js/live_validation.js'></script>
        <script language='javascript' type='text/javascript' src='js/codepress/codepress.js'></script>
-       <script type="text/javascript">
-       function init() {
-               document.add_new_range.range.setAttribute('match', "^\\d\\d?\\d?\\.\\d\\d?\\d?\\.\\d\\d?\\d?\\.\\d\\d?\\d?\\/\\d\\d?$");
-
-               Validate.init();
-       }
-       window.onload=init;
-       </script>
        </head>
 <body>
  <table border=0 cellpadding=0 cellspacing=0 width='100%' height='100%' class=maintable>
diff --git a/pi.css b/pi.css
index 0ad4b32d2cd24d6424478646a57d5137273afadc..92cda0bf4d5e2305cf7b43e721d71c63c39c5c7a 100644 (file)
--- a/pi.css
+++ b/pi.css
@@ -508,3 +508,11 @@ td.portmap_highlight_even {
 td.portmap_highlight_odd {
        background-color: #00FF00;
 }
+
+.validation-error {
+       border:2px solid red;
+}
+
+.validation-success {
+       border:2px solid green;
+}