Skip to content

Commit

Permalink
Merge pull request #70 from maximthomas/master
Browse files Browse the repository at this point in the history
Fix policy saving in XUI issue
  • Loading branch information
vharseko authored Aug 7, 2018
2 parents 25fcc38 + 880ac9d commit 1ce1bdd
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions openam-ui/openam-ui-ria/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>jquery-nestingSortable</artifactId>
<version>0.9.12</version>
<artifactId>jquery-sortable</artifactId>
<version>0.9.13</version>
<type>js</type>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion openam-ui/openam-ui-ria/src/main/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ require.config({
"redux" : "libs/redux-3.5.2-min",
"selectize" : "libs/selectize-non-standalone-0.12.1-min",
"sifter" : "libs/sifter-0.4.1-min",
"sortable" : "libs/jquery-nestingSortable-0.9.12",
"sortable" : "libs/jquery-sortable-0.9.13",
"spin" : "libs/spin-2.0.1-min",
"text" : "libs/text-2.0.15",
"xdate" : "libs/xdate-0.8-min"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ define([

initSortable = function (self) {

self.$el.find("ol#sortableAuthChain").nestingSortable({
self.$el.find("ol#sortableAuthChain").sortable({
exclude: "li:not(.chain-link)",
delay: 100,
vertical: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ define([

this.groupCounter++;

this.$el.find("ol#dropbox").nestingSortable({
this.$el.find("ol#dropbox").sortable({
group: `${self.element}rule-creation-group${self.groupCounter}`,
exclude: ".item-button-panel, li.editing",
delay: 100,
Expand Down Expand Up @@ -244,7 +244,7 @@ define([
}

delete result.subContainers;
delete result.nestingSortable;
delete result.nestedSortable;
return result;
}
});
Expand Down Expand Up @@ -323,7 +323,7 @@ define([
editRuleView.render(this.getProperties(), this.droppableParent, this.idCount, null,
function onRuleRender () {
self.editStart(editRuleView.$el);
self.$el.find("ol#dropbox").nestingSortable("refresh");
self.$el.find("ol#dropbox").sortable("refresh");
});

this.idCount++;
Expand Down Expand Up @@ -404,7 +404,7 @@ define([
return;
}

var rules = this.$el.find("ol#dropbox").nestingSortable("serialize").get(),
var rules = this.$el.find("ol#dropbox").sortable("serialize").get(),
operatorData = this.$el.find(`#operator${this.idPrefix}0`).data().itemData;

// Removing any obsolete root logicals.
Expand Down
6 changes: 3 additions & 3 deletions openam-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@
</artifactItem>
<artifactItem>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>jquery-nestingSortable</artifactId>
<version>0.9.12</version>
<artifactId>jquery-sortable</artifactId>
<version>0.9.13</version>
<packaging>js</packaging>
<downloadUrl>
https://raw.githubusercontent.com/ilikenwf/nestedSortable/v1.3.3/jquery.ui.nestedSortable.js
https://raw.githubusercontent.com/johnny/jquery-sortable/master/source/js/jquery-sortable.js
</downloadUrl>
</artifactItem>
<artifactItem>
Expand Down

0 comments on commit 1ce1bdd

Please sign in to comment.