Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

skip ajaxify for old-style injection elements

  • Loading branch information...
commit c0eb697f4b0dd55dd55b65de804ee69e32c2c0fd 1 parent 0ff6614
@chaoflow chaoflow authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/patterns/ajaxify.js
View
5 src/patterns/ajaxify.js
@@ -7,6 +7,11 @@ define([
var log = require('../logging').getLogger('ajaxify');
var init = function($el, opts) {
+ // skip elements that are covered by old-style injection
+ if ($el.is('.injection,[data-injection]')) {
+ log.debug('skipping element claimed by old injection', $el);
+ }
+
// ajaxify form
if ($el.is('form')) {
$el.ajaxForm({
Please sign in to comment.
Something went wrong with that request. Please try again.