Skip to content
Permalink
Browse files

Fixed: Fix multi modal opening

(OFBIZ-11211)

Simplifies a little bit the current code.

Thanks: Leila for patch and Carl for confirmation

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868615 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
JacquesLeRoux committed Oct 19, 2019
1 parent 1ef8312 commit 232862965ec659341eef37c0918c39e933c48b31
Showing with 2 additions and 4 deletions.
  1. +2 −4 themes/common-theme/webapp/common/js/util/OfbizUtil.js
@@ -119,14 +119,12 @@ function bindObservers(bind_element) {
});
jQuery(bind_element).on("click", "[data-dialog-url]", function(){
var element = jQuery(this);
var id = element.attr("id");
var url = element.data("dialog-url");
var title = element.data("dialog-title");
var width = element.data("dialog-width");
var height = element.data("dialog-height");
var params = element.data("dialog-params");
var dialogContainer = jQuery('<div id="container_'+ id + '"/>');

var dialogContainer = jQuery('<div/>');
dialogContainer.dialog({
autoOpen: false,
title: title,
@@ -135,7 +133,7 @@ function bindObservers(bind_element) {
modal: true,
closeOnEscape: true,
close: function() {
document.getElementById("container_" + id).parentElement.remove();
dialogContainer.dialog('destroy');
},
open: function() {
jQuery.ajax({

0 comments on commit 2328629

Please sign in to comment.
You can’t perform that action at this time.