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

Diff of /contributions/modules/contemplate/contemplate.js

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

revision 1.2.4.1.2.1, Sat Sep 12 02:25:14 2009 UTC revision 1.2.4.1.2.2, Sat Sep 12 03:46:51 2009 UTC
# Line 1  Line 1 
1  // $Id$  // $Id$
 (function ($) {  
   
2  function insertAtCursor(myField, myValue) {  function insertAtCursor(myField, myValue) {
3    //IE support    //IE support
4    if (document.selection) {    if (document.selection) {
# Line 19  function insertAtCursor(myField, myValue Line 17  function insertAtCursor(myField, myValue
17    } else {    } else {
18      myField.value += myValue;      myField.value += myValue;
19    }    }
20      return false;
21  }  }
22    
23  // calling the function  (function ($) {
24  // insertAtCursor(document.formName.fieldName, Ôthis valueÕ);  
25      // calling the function
26      // insertAtCursor(document.formName.fieldName, Ôthis valueÕ);
27    
28  Drupal.contemplate = new Object();    Drupal.contemplate = new Object();
29    
30  Drupal.contemplate.toggle = function() {    Drupal.contemplate.toggle = function() {
31    var target = $(this).attr('toggletarget');      var target = $(this).attr('toggletarget');
32    $(target)[0].disabled = this.checked ? false : true;      $(target)[0].disabled = this.checked ? false : true;
33    $(target + '-keys').css('opacity', this.checked ? 1 : .2)      $(target + '-keys').css('opacity', this.checked ? 1 : .2)
34  }    }
35    
36    $(document).ready(function(){    $(document).ready(function(){
37      $("input[id*=enable]")      $("input[id*=enable]")

Legend:
Removed from v.1.2.4.1.2.1  
changed lines
  Added in v.1.2.4.1.2.2

  ViewVC Help
Powered by ViewVC 1.1.2