Browse Source

Register custom Prototype events also in jQuery.

tags/v1.6.5
Adam Bukowski 6 years ago
parent
commit
a73c822042
2 changed files with 7 additions and 1 deletions
  1. +1
    -1
      index.php
  2. +6
    -0
      libs/prototype.js

+ 1
- 1
index.php View File

@@ -97,7 +97,7 @@ Please choose <?php print(EPESI);?> version:<ul>
<?php
ini_set('include_path','libs/minify'.PATH_SEPARATOR.'.'.PATH_SEPARATOR.'libs'.PATH_SEPARATOR.ini_get('include_path'));
require_once('Minify/Build.php');
$jses = array('libs/prototype.js','libs/jquery-1.7.2.min.js','libs/jquery-ui-1.10.1.custom.min.js','libs/HistoryKeeper.js','include/epesi.js');
$jses = array('libs/jquery-1.7.2.min.js','libs/jquery-ui-1.10.1.custom.min.js','libs/prototype.js','libs/HistoryKeeper.js','include/epesi.js');
$jsses_build = new Minify_Build($jses);
$jsses_src = $jsses_build->uri('serve.php?'.http_build_query(array('f'=>array_values($jses))));
?>


+ 6
- 0
libs/prototype.js View File

@@ -5640,6 +5640,12 @@ Form.EventObserver = Class.create(Abstract.EventObserver, {
}

function observe(element, eventName, handler) {
if (eventName.indexOf(':') > -1) {
var selector;
selector = typeof element == 'string' ? '#' + element : element;
jQuery(selector).bind(eventName, handler);
}

element = $(element);

var responder = _createResponder(element, eventName, handler);


Loading…
Cancel
Save