equal
deleted
inserted
replaced
3 var comment_template = false; |
3 var comment_template = false; |
4 var comment_render_track = 0; |
4 var comment_render_track = 0; |
5 |
5 |
6 window.ajaxComments = function(parms) |
6 window.ajaxComments = function(parms) |
7 { |
7 { |
8 load_component('l10n'); |
8 load_component(['l10n', 'paginate', 'template-compiler', 'toolbar', 'flyin']); |
9 load_component('paginate'); |
|
10 load_component('template-compiler'); |
|
11 load_component('toolbar'); |
|
12 load_component('flyin'); |
|
13 setAjaxLoading(); |
9 setAjaxLoading(); |
14 var pid = strToPageID(title); |
10 var pid = strToPageID(title); |
15 if(!parms) |
11 if(!parms) |
16 { |
12 { |
17 var parms = { |
13 var parms = { |
356 var captcha_code = ''; |
352 var captcha_code = ''; |
357 var captcha_id = ''; |
353 var captcha_id = ''; |
358 } |
354 } |
359 if ( subj == '' ) |
355 if ( subj == '' ) |
360 { |
356 { |
361 load_component('messagebox'); |
357 load_component(['messagebox', 'fadefilter']); |
362 load_component('fadefilter'); |
|
363 new MessageBox(MB_OK|MB_ICONSTOP, 'Input validation failed', 'Please enter a subject for your comment.'); |
358 new MessageBox(MB_OK|MB_ICONSTOP, 'Input validation failed', 'Please enter a subject for your comment.'); |
364 return false; |
359 return false; |
365 } |
360 } |
366 if ( text == '' ) |
361 if ( text == '' ) |
367 { |
362 { |
368 load_component('messagebox'); |
363 load_component(['messagebox', 'fadefilter']); |
369 load_component('fadefilter'); |
|
370 new MessageBox(MB_OK|MB_ICONSTOP, 'Input validation failed', 'Please enter some text for the body of your comment .'); |
364 new MessageBox(MB_OK|MB_ICONSTOP, 'Input validation failed', 'Please enter some text for the body of your comment .'); |
371 return false; |
365 return false; |
372 } |
366 } |
373 var req = { |
367 var req = { |
374 'mode' : 'submit', |
368 'mode' : 'submit', |