Feature #11300

Update issue - form position

Added by # And 12 months ago. Updated 6 months ago.

Status:ResolvedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Issues
Target version:-
Resolution:

Description

I personally use "Reverse chronological order", so latest updates are top located. It is very inconvenient to get a update form at bottom, while latest update in top.

Is this issue but or feature?

form_position.patch Magnifier (1.3 KB) # And, 2012-09-30 22:57


Related issues

Copied to Patch #12524: Update issue - form position New

History

#1 Updated by # And 11 months ago

  • Assignee set to Jean-Philippe Lang

Hey, anyone? =)

#2 Updated by # And 10 months ago

I resolve it myself. Add, please, code to repository:

  <script type="text/javascript">
    (function(){
      var reverseOrder = <%= User.current.wants_comments_in_reverse_order? %>,
        historyElement = $('history'),
        updateElement = $('update');

      if (reverseOrder && historyElement) {
        // Add br-element at bottom of update for to simulate some margin from journals
          updateElement.insert({ bottom: new Element('br') });

        // Inject before journals
        historyElement.insert({ before: updateElement });
      }
    })();
  </script>

#3 Updated by # And 10 months ago

Here it code update.

  <script type="text/javascript">
    (function(){
      var reverseOrder = <%= User.current.wants_comments_in_reverse_order? %>,
        historyElement = $('history'),
        updateElement = $('update');

      if (reverseOrder && historyElement) {
        // Add br-element at bottom of update for to simulate some margin from journals
        // and apply css-clear-property to break some long commit lists
          updateElement.insert({ bottom: new Element('br') }).setStyle({ clear: 'both' });

        // Inject before journals
        historyElement.insert({ before: updateElement });
      }
    })();
  </script>

#4 Updated by # And 9 months ago

Added patch to Redmine 2.1.0.

#5 Updated by # And 6 months ago

  • Status changed from New to Resolved

Moved to #12524

Also available in: Atom PDF