Commit 480aa80d by Don Mitchell

Cache

parent e884f17d
...@@ -55,6 +55,7 @@ $(document).ready(function() { ...@@ -55,6 +55,7 @@ $(document).ready(function() {
$("#start_date, #start_time, #due_date, #due_time").bind('change', autosaveInput); $("#start_date, #start_time, #due_date, #due_time").bind('change', autosaveInput);
$('.sync-date, .remove-date').bind('click', autosaveInput); $('.sync-date, .remove-date').bind('click', autosaveInput);
var cachedHesitation = new CMS.HesitateEvent( expandSection, $('.branch .collapsed'), 'mouseLeave');
// making the unit list sortable // making the unit list sortable
$('.sortable-unit-list').sortable({ $('.sortable-unit-list').sortable({
axis: 'y', axis: 'y',
...@@ -240,6 +241,12 @@ function removePolicyMetadata(e) { ...@@ -240,6 +241,12 @@ function removePolicyMetadata(e) {
saveSubsection() saveSubsection()
} }
function expandSection(event) {
$(event.currentTarget).removeClass('collapsed');
// TODO remove the hesitate trigger on this ele
// $(event.currentTarget).off('mouseEnter', expandSection);
$(event.currentTarget).find('.expand-collapse-icon').removeClass('expand').addClass('collapse');
}
// This method only changes the ordering of the child objects in a subsection // This method only changes the ordering of the child objects in a subsection
function onUnitReordered() { function onUnitReordered() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment