Javascript issue on /artefact/blog/view/

Bug #1052430 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Won't Fix
Medium
Son Nguyen

Bug Description

/artefact/blog/view/
reported for 1.5dev

only one journal set

When adding a new entry (/artefact/blog/post.php?blog=4), you can't add new files.

When editing an existing post, when you click add file, a new page is drawn but it doesn't show the part of the page where you can select files (ie there shoudl be an html anchor or soemthing)

When editing an existing post, when you click add file, then click select on a file, it is automatically added to the post before you click save.

When editing an existing post, and you add a file, you can't click save to get out of that page. instead it tags an extra &browse=1 to the url (/artefact/blog/post.php?id=42&browse=1&browse=1). Clicking cancel works, but all non-file changes are lost

Changed in mahara:
assignee: nobody → Son Nguyen (ngson2000)
milestone: none → 1.7.0
tags: added: javascript
Changed in mahara:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Son Nguyen (ngson2000) wrote :

Version: 1.5, 1.6, master

There are more Javascript issues on this page http://192.168.2.47/artefact/blog/view/:
 - No pagination
 - No confirmation box when click 'Delete' button

Revision history for this message
Son Nguyen (ngson2000) wrote :

Hi Kristina;

> When editing an existing post, when you click add file, then click select on a file, it is automatically added to the post before you click save.

As the limit of non javascript interaction, the form will be submitted every time a button is clicked. In this case, when you click the button 'Select', the form will be submitted and the file will be placed in the selected list of the post. Therefore you don't need to click the button "Save" again.
We can overcome this problem by temporary storing the list of selected files in the database, however, it will require lots of changes and will affect the site performance. In my opinion, it is not worth to do.

Revision history for this message
Son Nguyen (ngson2000) wrote :
Revision history for this message
Son Nguyen (ngson2000) wrote :

Test cases:

1. When the number of journal's entries is greater than 5, pagination links should appear
2. When deleting a journal or an entry, a confirmation form should appear
3. When editing an entry (/artefact/blog/post.php)
 + 'Add a file' and 'Close' buttons should open/close the filebrowser for attachment field.
 + Hide 'Remove' button if a file has been selected
 + The filebrowser should still open after clicking 'Remove' button or the folder links
 + 'Upload' button should work
4. 'Save entry' button should save the changes in fields except for 'Attachment' and redirect to /artefact/blog/view/index.php

Changed in mahara:
status: Triaged → In Progress
Revision history for this message
Son Nguyen (ngson2000) wrote :

New updated

When editing an entry (/artefact/blog/post.php), a list of tags should be displayed.

Revision history for this message
Son Nguyen (ngson2000) wrote :

Test case note:

To access the page /artefact/blog/view/
1. Login as an user
2. On the main menu, click Content/Journal
3. If you dont have a entry, create one by clicking 'New entry'

Revision history for this message
Melissa Draper (melissa) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 milestone 1.8
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQIcBAEBAgAGBQJRIwvSAAoJEJHQT0Mtn5aHiTAQAMvv3UB+Std5sp7MNLJisIWM
F3w5pbCldLn86j6IA8nIGNAqebAOLiQ3AW3a5zO1LZ3lHy3Yp8En4sIPSOkF2U8L
6U/DF9pDo/z7cuo+GhtlgRe7oUyklpWNjgsF4/yw8ppYLuQ6eLgQiopyuZX6N7+a
NTQfXknHZIIEe4XhWmV2b9GGVF4Mhg1RUshsJe5/FvvC9ybXV+TTL/8HfFcdVL8e
lJfqu6Kjf4ueyp5dUXtHkh+GArjmT+O6j+bFRgR9rpvS4140JZimj05ZvjWzb6oS
zYgtyNap/T0rcyZP/upNweEhaWGAdJAMoO+GOIcSMDgTdWaAXyLlEgVfFOhx2IhT
sH6Dfuld4bCRsRLcrQwpKwcOB9xEYleCAXSeaZsVry9rfj2LWcrXzrBhPDsa7JQ0
qcPzymGh8kHHpVJPuaX3ztyaKPdS4jP8mz6CGnTwZ2ot2dDbbMBal4fkZfQ4j/cR
j1V9Q6HBU9RkcjXvcGFvYyA9HPMPVETQyx9mu/KYVtGf88Y9ucLlflQDsPskhZdQ
H8l9vEzdJLURAyq/YXKdrR14g9OgA+aqIWIO2E1YhjSO2kUAMBeRFjU/FEhftxPw
DkoR86wtix4QHeStPaA9PyPA1X825tdRQ9itqpBqbIgkKpD1Ue6hzf0aOvKX8+FJ
NSqftjUQEqadBbaQTqkP
=t4IF
-----END PGP SIGNATURE-----

Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 1.7.0 → 1.8.0
Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 1.8rc1 → 1.8.0
Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 1.8.0 → none
Aaron Wells (u-aaronw)
Changed in mahara:
status: In Progress → Won't Fix
Aaron Wells (u-aaronw)
tags: added: nonjs
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.