Add missing print function to the framework base

This commit is contained in:
Hadi Nategh 2014-11-26 08:40:42 +00:00
parent 6db1339365
commit 1e93cb8224

View File

@ -994,5 +994,21 @@ var fw_base = Class.extend({
{
return win;
}
}
},
/**
* Print function prints the active window
*/
print: function()
{
if (this.activeApp && this.activeApp.appName != 'manual')
{
var appWindow = this.egw_appWindow(this.activeApp.appName);
if (appWindow)
{
appWindow.focus();
appWindow.print();
}
}
}
});