diff options
author | shadlaws <shad@shadlaws.com> | 2013-05-07 18:46:43 +0200 |
---|---|---|
committer | shadlaws <shad@shadlaws.com> | 2013-05-07 18:46:43 +0200 |
commit | 90528d9c83b74518c0a2293802b93fa03da40345 (patch) | |
tree | 266f67f2c6617aafa3b5f92ee56db9530f9520f3 /lib/gallery.ajax.js | |
parent | 269927b27c7ea25193c4da29db17539eb3d92d50 (diff) |
#2065 - Fix problems with double-ajaxifying of dialogs.
Change all jQuery-ui widget _init() functions to _create() functions.
Diffstat (limited to 'lib/gallery.ajax.js')
-rw-r--r-- | lib/gallery.ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gallery.ajax.js b/lib/gallery.ajax.js index 08f1fede..898bbd79 100644 --- a/lib/gallery.ajax.js +++ b/lib/gallery.ajax.js @@ -1,6 +1,6 @@ (function($) { $.widget("ui.gallery_ajax", { - _init: function() { + _create: function() { this.element.click(function(event) { eval("var ajax_handler = " + $(event.currentTarget).attr("data-ajax-handler")); $.get($(event.currentTarget).attr("href"), function(data) { |