#9523 dialog title plugins
This commit is contained in:
parent
f28a4d0f28
commit
925880dbdb
|
@ -892,7 +892,7 @@ if (($create != '') || ($view != '')) {
|
||||||
echo '<div id="deploy_messages" class="invisible">';
|
echo '<div id="deploy_messages" class="invisible">';
|
||||||
}
|
}
|
||||||
|
|
||||||
// The '%s' will be replaced in the javascript code of the function 'show_locked_dialog'
|
// The '%s' will be replaced in the javascript code of the function 'show_locked_dialog'.
|
||||||
echo "<div id='dialog_locked' title='".__('List of modules and components created by "%s" ')."' class='invisible left'>";
|
echo "<div id='dialog_locked' title='".__('List of modules and components created by "%s" ')."' class='invisible left'>";
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
|
@ -941,12 +941,11 @@ ui_require_javascript_file('pandora_modules');
|
||||||
data: parameters,
|
data: parameters,
|
||||||
dataType: "html",
|
dataType: "html",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
var title = $("#dialog_locked").prop('title').replace(/%s/, plugin_name);
|
var title = 'List of modules and components created by "'+ plugin_name +'"';
|
||||||
|
|
||||||
$("#dialog_locked")
|
$("#dialog_locked")
|
||||||
.prop('title', title)
|
|
||||||
.html(data)
|
.html(data)
|
||||||
.dialog ({
|
.dialog ({
|
||||||
|
title: title,
|
||||||
resizable: true,
|
resizable: true,
|
||||||
draggable: true,
|
draggable: true,
|
||||||
modal: true,
|
modal: true,
|
||||||
|
@ -962,7 +961,6 @@ ui_require_javascript_file('pandora_modules');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
// Add macro
|
// Add macro
|
||||||
var add_macro_click_event = function (event) {
|
var add_macro_click_event = function (event) {
|
||||||
|
|
Loading…
Reference in New Issue