Changeset 4928
- Timestamp:
- 08/16/11 15:02:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/search.js
r4853 r4928 16 16 this.txtfields = new Array("txt_ass","txt_de","txt_body","txt_para","txt_cc","txt_cco", "since_date", "before_date", "on_date"); 17 17 this.selectFields = new Array("flagged", "seen", "answered", "recent"); 18 this.localResults = 0; 18 19 } 19 20 … … 226 227 227 228 // Gears - local 228 if ( preferences.use_local_messages == 1)229 if (preferences.use_local_messages == 1 && EsearchE.localResults != 0) 229 230 { 230 231 temp = expresso_local_messages.list_local_folders(); … … 233 234 local_folders.push(temp[x][0]); 234 235 } 235 } 236 237 if ( local_folders.length > 0 ) 236 if ( local_folders.length > 0 ) 238 237 _gears = expresso_local_messages.search( local_folders, expresso_local_messages.getFilter() ); 238 _data['gears_num_msgs'] = _gears.length; 239 }else{ 240 _data['gears_num_msgs'] = 0; 241 } 239 242 240 243 _data['data'] = data['data']; 241 244 _data['num_msgs'] = data['num_msgs']; 242 _data['gears_num_msgs'] = _gears.length;245 243 246 244 247 delete_border( data['currentTab'], false); … … 393 396 if (gears.length > 0) 394 397 { 398 this.localResults = gears.length; 395 399 allMsg['data_gears'] = gears; 400 }else{ 401 this.localResults = 0; 396 402 } 397 403 … … 1234 1240 } 1235 1241 var count = data['num_msgs'] ? data['num_msgs'] : tmp.length > 0 ? tmp.length : "0"; 1236 1242 EsearchE.localResults = tmp.length; 1237 1243 if( data['num_msgs'] ) 1238 1244 { … … 1256 1262 allMsg['data_gears'] = tmp; 1257 1263 } 1258 1259 write_msg( count + " " + get_lang("results found") );1264 1265 write_msg( count + " " + get_lang("results found") ); 1260 1266 EsearchE.mount_result( allMsg, 'SORTDATE' ); 1261 1267 } 1268 1262 1269 } 1263 1270
Note: See TracChangeset
for help on using the changeset viewer.