By Tom on Monday, 06 June 2016
Posted in Technical Issues
Replies 1
Likes 0
Views 349
Votes 0
Is it possible to disable the confirmation popup when closing a window? It is aggravating on a slow internet connection and redundant to the purpose. I don't need to be reminded that yes, I am actually closing the window I don't want to be on any longer.
Hey Tom,

Unfortunately that was not possible to turn off this dialog from backend setting.

If you really want to achieve this, you have to modify this file -> JoomlaFolder\media\com_easyblog\scripts\layout\launcher.js


// LINE 77 - 95
.on("click", launcherCloseButton_, function(){

EasyBlog.dialog({
"content": EasyBlog.ajax('site/views/composer/confirmClose'),
"bindings": {
"{cancelButton} click": function() {
console.log('here');
EasyBlog.dialog.close();
},

"{closeButton} click": function() {
console.log('2222here');

EasyBlog.dialog.close();
self.close();
},
}
});
})

// Replace with

.on("click", launcherCloseButton_, function(){
self.close();
})


Then you have to switch your Easyblog system environment mode to `development` to make this changes work.
·
Monday, 06 June 2016 22:13
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post