We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f25809a + 0af9fb6 commit 7ffff18Copy full SHA for 7ffff18
1 file changed
js/taskbar.js
@@ -15,7 +15,7 @@ var taskbar = {
15
},
16
openDialog: function (id, url, w, h) {
17
var dlg = null;
18
- id = 'dialog-' + id;
+ id = 'dialog-' + id.replace(/ /g,'-');
19
obj = this.findDialog(id);
20
if (obj) { // && dlg.status == 1) {
21
// confirm current operation abort.. if user cancels, return;
@@ -43,7 +43,7 @@ var taskbar = {
43
44
45
openModal: function (id, url, w, h) {
46
47
dlg = this.createDialog(id, url, w, h, true);
48
49
dlg.find('.dialog_contents').attr('src', 'javascript:false');
@@ -75,7 +75,7 @@ var taskbar = {
75
76
createDialog: function(id, url, w, h, modal) {
77
var dlg = $("#dialog-template").clone();
78
- var dlg_id = id;
+ var dlg_id = id.replace(/ /g,'-');
79
dlg.attr('id', dlg_id);
80
dlg.find('.dialog_contents').attr('id', dlg_id + '-contents');
81
dlg.dialog({
0 commit comments