/[drupal]/contributions/modules/anti_existing_field/anti_existing_field.js
ViewVC logotype

Contents of /contributions/modules/anti_existing_field/anti_existing_field.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Wed Oct 1 19:42:26 2008 UTC (13 months, 3 weeks ago) by deekayen
Branch: MAIN
CVS Tags: DRUPAL-6--2-0, DRUPAL-6--1-0, DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1, DRUPAL-6--2
File MIME type: text/javascript
Drupal 5 CCK to disable being able to re-use fields (prevents splitting fields into separate tables when new fields are added to a content type); current options are disable the submit button, remove the form, or prank the user to move the button around the screen on mouseover
1 var aefcount = 1;
2 function aef_prank() {
3 if(aefcount == 1) {
4 document.getElementById("anti-existing-field").style.position = "absolute";
5 document.getElementById("anti-existing-field").style.top = "75px";
6 document.getElementById("anti-existing-field").style.left = "600px";
7 }
8 if(aefcount == 2) {
9 document.getElementById("anti-existing-field").style.top = "115px";
10 document.getElementById("anti-existing-field").style.left = "110px";
11 }
12 if(aefcount == 3) {
13 document.getElementById("anti-existing-field").style.top = "210px";
14 document.getElementById("anti-existing-field").style.left = "350px";
15 }
16 aefcount = aefcount + 1;
17 if(aefcount == 4) {
18 aefcount = 1;
19 }
20 }

  ViewVC Help
Powered by ViewVC 1.1.2