- $(['info', 'warning', 'error']).each(function(idx, category) {
- $('#flash_' + category).hide();
- $('#flash_detail_' + category).hide();
- $('#flash_' + category + '_disp').hide();
- $('#flash_' + category + '_content').empty();
- $('#flash_' + category + '_detail').empty();
- });
-
- if ((data.js || '') != '')
+ if (!data.no_flash_clear) {
+ $(['info', 'warning', 'error']).each(function(idx, category) {
+ $('#flash_' + category).hide();
+ $('#flash_detail_' + category).hide();
+ $('#flash_' + category + '_disp').hide();
+ $('#flash_' + category + '_content').empty();
+ $('#flash_' + category + '_detail').empty();
+ });
+ }
+ if ((data.js || '') !== '')
+ // jshint -W061