| 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) { |
| 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]") |