});
if (rowNames.length) {
- $(ajaxElements).after('<div class="ajax-progress ajax-progress-throbber"><div class="throbber"> </div></div>');
+ $(ajaxElements).after(Drupal.theme.ajaxProgressThrobber());
$('input[name=refresh_rows]').val(rowNames.join(' '));
$('input[data-drupal-selector="edit-refresh"]').trigger('mousedown');
this.$regionSelect.val(region);
- var value = typeof this.defaultPlugin !== 'undefined' ? this.defaultPlugin : this.$pluginSelect.find('option').val();
+ if (this.region === 'hidden') {
+ var value = typeof this.defaultPlugin !== 'undefined' ? this.defaultPlugin : this.$pluginSelect.find('option').val();
- if (typeof value !== 'undefined') {
- this.$pluginSelect.val(value);
+ if (typeof value !== 'undefined') {
+ this.$pluginSelect.val(value);
+ }
}
var refreshRows = {};