<
Depuis la version < 3.1 >
modifié par superadmin
sur 2022/01/01 16:06
À la version < 2.1 >
modifié par superadmin
sur 2021/12/12 21:55
>
Commentaire de modification : Migrated property [scope] from class [XWiki.ConfigurableClass]

Résumé

Détails

Icon XWiki.JavaScriptExtension[0]
Code
... ... @@ -48,12 +48,6 @@
48 48   new XWiki.Document('UpdateOwnerDetails', 'Licenses.Code').getURL('get', 'outputSyntax=plain'),
49 49   data
50 50   );
51 - },
52 - modifyAutoUpgradesBlocklist: function(data) {
53 - return $.post(
54 - new XWiki.Document('UpdateAutomaticUpgradesBlocklist', 'Licenses.Code').getURL('get', 'outputSyntax=plain'),
55 - data
56 - );
57 57   }
58 58   };
59 59  });
... ... @@ -137,18 +137,6 @@
137 137   });
138 138   };
139 139  
140 - // An extensionId could have multiple rows in the livetable if is installed on multiple subwikis, but the blocklist
141 - // is applied to all namespaces.
142 - var updateExtensionOfOtherWikis = function(extensionId, isChecked) {
143 - var similarExtensions = $("input[name='extensionId'][value='" + extensionId + "']");
144 - similarExtensions.each(function() {
145 - var checkbox = $(this).siblings("input[type='checkbox']");
146 - if (checkbox.prop('checked') != isChecked) {
147 - checkbox.prop('checked', isChecked);
148 - }
149 - });
150 - };
151 -
152 152   // xwiki:livetable:displayComplete might be triggered before the code from this jsx is executed. In this case, the
153 153   // livetable is also loaded before, because it is using Prototype.js which is loading before the page loads.
154 154   // Make sure that the livetable is loaded by checking for a row with some data.
... ... @@ -164,7 +164,16 @@
164 164   reloadTimeoutId = setTimeout(function() {
165 165   if ($.type(window.livetable_licenseManager) !== 'undefined') {
166 166   // Reload the livetable.
167 - livetable_licenseManager.refresh();
149 + if ($.type(livetable_licenseManager.refresh) === 'function') {
150 + // Available only for XWiki version >= 9.5RC1.
151 + livetable_licenseManager.refresh();
152 + } else {
153 + // This branch should be removed when the licensing app will use XWiki >= 9.5RC1.
154 + var end = livetable_licenseManager.limit;
155 + var start = Math.max(livetable_licenseManager.lastOffset, 1);
156 + livetable_licenseManager.clearCache();
157 + livetable_licenseManager.getRows(start, end, start, end);
158 + }
168 168   }
169 169   }, 0);
170 170   });
... ... @@ -258,20 +258,6 @@
258 258   });
259 259   });
260 260  
261 - $('input[name=autoUpgrade]').click(function() {
262 - var autoUpgradeForm = $(this).parent('form').serializeArray();
263 - licensor.modifyAutoUpgradesBlocklist(autoUpgradeForm).success(function(data) {
264 - if(data.isAutoUpgrade) {
265 - new XWiki.widgets.Notification(
266 - $jsontool.serialize($services.localization.render('licensor.moreActions.autoUpgrade.added')), 'done');
267 - } else {
268 - new XWiki.widgets.Notification(
269 - $jsontool.serialize($services.localization.render('licensor.moreActions.autoUpgrade.removed')), 'done');
270 - }
271 - updateExtensionOfOtherWikis(data.extensionId, !data.isAutoUpgrade);
272 - });
273 - });
274 -
275 275   // Set the documentation links to open in new tab.
276 276   $('#licenseManager-display td.name a').each(function() {
277 277   $(this).attr('target', '_blank')
Icon XWiki.StyleSheetExtension[0]
Code
... ... @@ -14,9 +14,3 @@
14 14   border: 1px solid #ccc;
15 15   border-radius: 4px;
16 16  }
17 -
18 -/* .dropleft to be used after moving to Bootstrap 4 */
19 -.dropdown-left {
20 - right: 0;
21 - left: auto;
22 -}
This wiki is licensed under a Creative Commons 2.0 license
XWiki 13.10 - Documentation - Conditions