Skip to content

Commit

Permalink
🔧 connect jq-ui.css and prevent sortable unnecesary behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
ikenfin committed Mar 13, 2019
1 parent 6683f4d commit 632b070
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion oc2/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<search><![CDATA[protected function getForm() {]]></search>
<add position="after"><![CDATA[
$this->document->addScript('view/javascript/jquery/jquery-ui/jquery-ui.min.js');
$this->document->addStyle('view/javascript/jquery/jquery-ui/jquery-ui.min.css');
]]></add>
</operation>
</file>
Expand All @@ -31,7 +32,8 @@
}
$(function () {
$('#form-layout table tbody').sortable({
$('#module-column-left,#module-content-top,#module-content-bottom,#module-column-right').sortable({
items: 'tbody tr',
stop: recalculatePositions
});
});
Expand Down
4 changes: 3 additions & 1 deletion oc3/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<search><![CDATA[protected function getForm() {]]></search>
<add position="after"><![CDATA[
$this->document->addScript('view/javascript/jquery/jquery-ui/jquery-ui.min.js');
$this->document->addStyle('view/javascript/jquery/jquery-ui/jquery-ui.min.css');
]]></add>
</operation>
</file>
Expand All @@ -31,7 +32,8 @@
}
$(function () {
$('#form-layout table tbody').sortable({
$('#module-column-left,#module-content-top,#module-content-bottom,#module-column-right').sortable({
items: 'tbody tr',
stop: recalculatePositions
});
});
Expand Down

0 comments on commit 632b070

Please sign in to comment.