Commit:    1887419072e261ccd45c04cd51820f1c17375cdc
Author:    Peter Cowburn <[email protected]>         Tue, 11 Nov 2014 
20:21:35 +0000
Parents:   f0674f2a3f8e46e317b208d384bcbdb1c7176087
Branches:  master

Link:       
http://git.php.net/?p=web/master.git;a=commitdiff;h=1887419072e261ccd45c04cd51820f1c17375cdc

Log:
move inline javascript to file (bug #68404)

See corresponding commit in web/shared

Bugs:
https://bugs.php.net/68404

Changed paths:
  M  include/functions.inc


Diff:
diff --git a/include/functions.inc b/include/functions.inc
index 8ccae74..78e31d8 100644
--- a/include/functions.inc
+++ b/include/functions.inc
@@ -55,6 +55,7 @@ function foot($secondscreen = null) {
     $SECONDSCREEN = $secondscreen;
 
     $JS = array(
+        "/js/master.js",
     );
     if (strstr($_SERVER["SCRIPT_FILENAME"], "users.php")) {
         array_push(
@@ -73,27 +74,6 @@ function foot($secondscreen = null) {
 
 ?>
   </section>
-  <script type="text/javascript" >
-  $(document).ready(function() {
-    $('#votesdeleteform').submit(function() {
-      if (confirm("Are you sure you want to delete these votes? This will 
permanently delete these votes from the votes table!"))
-        return true;
-      else
-        return false;
-    });
-    $('#votesselectall').click(function() {
-      if (this.checked) {
-        $('input:checkbox.vdelids').each(function () {
-             this.checked = true;
-        });
-      } else {
-        $('input:checkbox.vdelids').each(function () {
-             this.checked = false;
-        });
-      }
-    });
-  });
-  </script>
 <?php
     include __DIR__ . "/../shared/templates/footer.inc";
 }


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to