mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Adding RTL boolean value to jquery.mjs.nestedSortable.js - Might want to think about creating a value in the admin screens for IsRTL
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
placeholder: 'navigation-placeholder',
|
||||
revert: 50,
|
||||
tabSize: 30,
|
||||
rtl: window.isRTL,
|
||||
tolerance: 'pointer',
|
||||
toleranceElement: '> div',
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@model NavigationManagementViewModel
|
||||
@using Orchard.Core.Navigation.ViewModels;
|
||||
@using Orchard.Localization
|
||||
@using Orchard.Utility.Extensions;
|
||||
|
||||
@{
|
||||
@@ -10,6 +11,9 @@
|
||||
Script.Include("jquery.mjs.nestedSortable.js").AtFoot();
|
||||
Script.Include("navigation-admin.js").AtFoot();
|
||||
}
|
||||
<script type="text/javascript">
|
||||
window.isRTL = @((Html.Directionality() == "rtl").ToString().ToLowerInvariant());
|
||||
</script>
|
||||
|
||||
<div id="save-message" class="message message-Warning">@T("You need to hit \"Save All\" in order to save your changes.")</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user