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:
Nicholas Mayne
2014-08-10 22:56:07 +01:00
parent 261e9c9d5c
commit 8cbc9191d6
2 changed files with 5 additions and 0 deletions

View File

@@ -31,6 +31,7 @@
placeholder: 'navigation-placeholder',
revert: 50,
tabSize: 30,
rtl: window.isRTL,
tolerance: 'pointer',
toleranceElement: '> div',

View File

@@ -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>