To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Ticket #28 (closed enhancement: fixed)

Opened 2 years ago

Last modified 17 months ago

Visual feedback after adding a slot

Reported by: rickybanister Owned by: johnnyoffline
Priority: major Milestone: 1.5
Component: apostrophePlugin Version:
Keywords: slots, ui Cc: tboutell, rickybanister, hillerj
Symfony version:

Description (last modified by johnnyoffline) (diff)

Opened by Rick Banister 5/26/2009 11:12 AM

Make the new slot flash when it appears to let people know which thing on the page is new. Yellow? or a color specified in the stylesheet.

Edited by John Benson 9/30/2009 2:31 PM

One thing that would help here is if there's a "last-edited" class on the slot that ran the save action.

This could be used to scope the pulse.

If history is fired and an entire area gets revised. The scope will hit the entire area.

The pulse will just eat whichever element has the class name and then clear itself out when it's done.

Change History

Changed 2 years ago by johnnyoffline

  • description modified (diff)

Changed 2 years ago by johnnyoffline

  • description modified (diff)

Changed 2 years ago by johnnyoffline

  • status changed from new to accepted

Changed 2 years ago by agilbert

  • sensitive set to 0
  • version Symfony 1.4 deleted
  • milestone set to 1.1

Changed 21 months ago by boutell

  • milestone changed from 1.4 to 1.5

Changed 17 months ago by johnnyoffline

  • status changed from accepted to closed
  • resolution set to fixed

When you add a new slot, the slot flashes yellow. I think yellow is ugly.

var newSlot = $('#a-area-<?php echo "$pageid-$name" ?>').find('.a-new-slot');
if (newSlot.length) {
  newSlot.effect("highlight", {}, 1000);
  $('#a-add-slot-<?php echo $pageid.'-'.$name ?>').parent().trigger('toggleClosed');
};

I am not sure how the best way to handle changing the highlight color - considering that it's set where the javascript call lives --
but for completeness' sake you do it like this:

$(this).effect("highlight", {color: 'blue'}, 3000);
Note: See TracTickets for help on using tickets.