com web/shared: created master.js (bug #68404): js/master.js
| From: | Peter Cowburn | Date: | Tue, 11 Nov 2014 20:22:23 +0000 |
| Subject: | com web/shared: created master.js (bug #68404): js/master.js | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-20218@lists.php.net to get a copy of this message | ||
Commit: 19255fc15c8a8f47532be177a0437e4a277cee3f
Author: Peter Cowburn <petercowburn@gmail.com> Tue, 11 Nov 2014 20:22:23 +0000
Parents: 30f7a1081699fdfeab58965ff4c7b3d6a44a7713
Branches: master
Link: http://git.php.net/?p=web/shared.git;a=commitdiff;h=19255fc15c8a8f47532be177a0437e4a277cee3f
Log:
created master.js (bug #68404)
Bugs:
https://bugs.php.net/68404
Changed paths:
A js/master.js
Diff:
diff --git a/js/master.js b/js/master.js
new file mode 100644
index 0000000..57afae9
--- /dev/null
+++ b/js/master.js
@@ -0,0 +1,19 @@
+$(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;
+ });
+ }
+ });
+});