root / htmltest / sites / all / modules / i18n / i18n_block / i18n_block.js @ 011029ce
1 |
|
---|---|
2 |
(function ($) { |
3 |
|
4 |
/**
|
5 |
* Provide the summary information for the block settings vertical tab.
|
6 |
*/
|
7 |
Drupal.behaviors.i18nSettingsSummary = { |
8 |
attach: function (context) { |
9 |
|
10 |
$('fieldset#edit-languages', context).drupalSetSummary(function (context) { |
11 |
var summary = ''; |
12 |
if ($('.form-item-i18n-mode input[type=checkbox]:checked', context).val()) { |
13 |
summary += Drupal.t('Translatable');
|
14 |
} |
15 |
else {
|
16 |
summary += Drupal.t('Not translatable');
|
17 |
} |
18 |
summary += ', ';
|
19 |
if ($('.form-item-languages input[type=checkbox]:checked', context).val()) { |
20 |
summary += Drupal.t('Restricted to certain languages');
|
21 |
} |
22 |
else {
|
23 |
summary += Drupal.t('Not restricted');
|
24 |
} |
25 |
return summary;
|
26 |
}); |
27 |
} |
28 |
}; |
29 |
|
30 |
})(jQuery); |