added @meberOf JSDoc comment to constructor to get Eclipse show outline of class, also fixed several warnings

This commit is contained in:
Ralf Becker 2013-04-13 10:30:07 +00:00
parent 5a4850b2ed
commit 55b150cc14

View File

@ -8,8 +8,8 @@
* @version $Id$
*/
app.mail = AppJS.extend({
app.mail = AppJS.extend(
{
appname: 'mail',
doStatus: null,
mail_doTimedRefresh: false,
@ -20,6 +20,8 @@ mail_queuedFoldersIndex: 0,
/**
* Initialize javascript for this application
*
* @memberOf app.mail
*/
init: function() {
@ -102,7 +104,9 @@ mail_startTimerFolderStatusUpdate: function(_refreshTimeOut) {
}
if(_refreshTimeOut > 9999) {//we do not set _refreshTimeOut's less than 10 seconds
var self = this;
this.mail_doTimedRefresh = window.setInterval(function() {self.mail_refreshFolderStatus.apply(self)}, _refreshTimeOut);
this.mail_doTimedRefresh = window.setInterval(function() {
self.mail_refreshFolderStatus.apply(self);
}, _refreshTimeOut);
}
},
@ -249,7 +253,7 @@ mail_delete: function(_action,_elems)
this.mail_setRowClass(_elems,'deleted');
var request = new egw_json_request('mail.mail_ui.ajax_deleteMessages',[msg]);
request.sendRequest(false);
this.mail_refreshMessageGrid()
this.mail_refreshMessageGrid();
},
/**
@ -381,7 +385,7 @@ mail_flagMessages: function(_flag, _elems)
app.mail.app_refresh(egw.lang('flag messages'), 'mail');
var request = new egw_json_request('mail.mail_ui.ajax_flagMessages',[_flag, _elems]);
request.sendRequest(false);
this.mail_refreshMessageGrid()
this.mail_refreshMessageGrid();
},
/**
@ -437,7 +441,7 @@ mail_save: function(_action, _elems)
var url = window.egw_webserverUrl+'/index.php?';
url += 'menuaction=mail.mail_ui.saveMessage'; // todo compose for Draft folder
url += '&id='+_elems[0].id;
//window.open(url,'_blank','dependent=yes,width=100,height=100,scrollbars=yes,status=yes')
//window.open(url,'_blank','dependent=yes,width=100,height=100,scrollbars=yes,status=yes');
document.location = url;
},
@ -533,7 +537,6 @@ mail_setRowClass: function(_actionObjects,_class) {
{
if (_actionObjects[i].id.length>0)
{
var _id = _actionObjects[i].id;
var dataElem = $j(_actionObjects[i].iface.getDOMNode());
dataElem.addClass(_class);
@ -551,7 +554,7 @@ mail_setRowClass: function(_actionObjects,_class) {
*/
mail_dragStart: function(action,_senders) {
//console.log(action,_senders);
return $j("<div class=\"ddhelper\">" + _senders.length + " Mails selected </div>")
return $j("<div class=\"ddhelper\">" + _senders.length + " Mails selected </div>");
},
/**
* mail_move - implementation of the move action from drag n drop
@ -569,7 +572,7 @@ mail_move: function(_action,_senders,_target) {
// as the "onNodeSelect" function!
var request = new egw_json_request('mail.mail_ui.ajax_moveMessages',[target, messages]);
request.sendRequest(false);
this.mail_refreshMessageGrid()
this.mail_refreshMessageGrid();
},
/**
* mail_copy - implementation of the copy action from drag n drop
@ -587,7 +590,7 @@ mail_copy: function(_action,_senders,_target) {
// as the "onNodeSelect" function!
var request = new egw_json_request('mail.mail_ui.ajax_copyMessages',[target, messages]);
request.sendRequest(false);
this.mail_refreshMessageGrid()
this.mail_refreshMessageGrid();
},
/**
* mail_RenameFolder - implementation of the RenameFolder action of right click options on the tree