Skip to content

Commit

Permalink
Bug #12398
Browse files Browse the repository at this point in the history
Fixing a regression introduced into 6.3-SNAPSHOT about keyword data of translations that were not copied on publication copy action.

Adding the ability to handle events on CheckBox Monitor API.
  • Loading branch information
SilverYoCha committed Jul 28, 2021
1 parent 7635663 commit a87ce31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Expand Up @@ -63,4 +63,11 @@ public void setKeywords(String keywords) {
this.keywords = keywords;
}

@SuppressWarnings("unchecked")
@Override
protected PublicationI18N copy() {
final PublicationI18N copy = super.copy();
copy.keywords = keywords;
return copy;
}
}
4 changes: 3 additions & 1 deletion core-war/src/main/webapp/util/javaScript/silverpeas.js
Expand Up @@ -2005,6 +2005,7 @@ if (typeof window.sp === 'undefined') {
selection : {
newCheckboxMonitor : function(cssSelector) {
return new function() {
applyEventDispatchingBehaviorOn(this);
var __shift = false;
var __selectedAtStart = [];
var __selected = [];
Expand Down Expand Up @@ -2065,7 +2066,8 @@ if (typeof window.sp === 'undefined') {
__selected.removeElement(ckbox.value);
}
});
};
this.dispatchEvent('change');
}.bind(this);
this.pageChanged = function() {
__init();
};
Expand Down

0 comments on commit a87ce31

Please sign in to comment.