mirror of
https://github.com/Pathduck/gallery3.git
synced 2024-10-29 12:57:18 -04:00
#2065 - Fix problems with double-ajaxifying of dialogs.
Change all jQuery-ui widget _init() functions to _create() functions.
This commit is contained in:
parent
269927b27c
commit
90528d9c83
@ -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) {
|
||||
|
@ -7,7 +7,7 @@
|
||||
resizable: false,
|
||||
position: "center"
|
||||
},
|
||||
_init: function() {
|
||||
_create: function() {
|
||||
var self = this;
|
||||
if (!self.options.immediate) {
|
||||
this.element.click(function(event) {
|
||||
|
@ -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();
|
||||
|
@ -1,6 +1,6 @@
|
||||
(function($) {
|
||||
$.widget("ui.gallery_panel", {
|
||||
_init: function() {
|
||||
_create: function() {
|
||||
var self = this;
|
||||
this.element.click(function(event) {
|
||||
event.preventDefault();
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user