forked from extern/egroupware
Add missing print function to the framework base
This commit is contained in:
parent
6db1339365
commit
1e93cb8224
@ -994,5 +994,21 @@ var fw_base = Class.extend({
|
|||||||
{
|
{
|
||||||
return win;
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user