#2065 - Fix problems with double-ajaxifying of dialogs.

Change all jQuery-ui widget _init() functions to _create() functions.
This commit is contained in:
shadlaws 2013-05-07 18:46:43 +02:00
parent 269927b27c
commit 90528d9c83
6 changed files with 6 additions and 6 deletions

View File

@ -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) {

View File

@ -7,7 +7,7 @@
resizable: false,
position: "center"
},
_init: function() {
_create: function() {
var self = this;
if (!self.options.immediate) {
this.element.click(function(event) {

View File

@ -2,7 +2,7 @@
$.widget("ui.gallery_in_place_edit", {
options: {},
_init: function() {
_create: function() {
var self = this;
this.element.click(function(event) {
event.preventDefault();

View File

@ -1,6 +1,6 @@
(function($) {
$.widget("ui.gallery_panel", {
_init: function() {
_create: function() {
var self = this;
this.element.click(function(event) {
event.preventDefault();

View File

@ -1,6 +1,6 @@
(function($) {
$.widget("ui.gallery_server_add", {
_init: function() {
_create: function() {
var self = this;
$("#g-server-add-add-button", this.element).click(function(event) {
event.preventDefault();

View File

@ -9,7 +9,7 @@
'g-password-strength100']
},
_init: function() {
_create: function() {
var self = this;
$(this.element).on("input keyup", function() {
var strength = self.calculateStrength(this.value);