Javascript issue on /artefact/file/profileicons.php

Bug #1052428 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/file/profileicons.php
reported for 1.5dev

When clicking the Upload button, it redirects to a new page with <body onLoad="sendResult();"></body>

The sendResult method is as follows:

function sendResult() { parent.pieformHandlers["upload"]({"message":"Your profile picture has been uploaded to your 'images' folder.","returnCode":0,"replaceHTML":"<form class=\"pieform\" name=\"upload\" method=\"post\" action=\"\" id=\"upload\" enctype=\"multipart\/form-data\">\n<table cellspacing=\"0\"><tbody>\n\t<tr id=\"upload_file_container\" class=\"required file\">\n\t\t<th><label for=\"upload_file\">Profile Picture<\/label> <span class=\"requiredmarker\">*<\/span><\/th>\n\t\t<td><input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"209715200\"\/><input type=\"file\" class=\"required file autofocus\" id=\"upload_file\" name=\"file\" tabindex=\"2\"><\/td>\n\t<\/tr>\n\t<tr id=\"upload_title_container\" class=\"text\">\n\t\t<th><label for=\"upload_title\">Image Title<\/label><\/th>\n\t\t<td><input type=\"text\" class=\"text\" id=\"upload_title\" name=\"title\" tabindex=\"2\" value=\"fdh\"><\/td>\n\t<\/tr>\n\t<tr id=\"upload_submit_container\" class=\"submit\">\n\t\t<th><\/th>\n\t\t<td><input type=\"submit\" class=\"submit\" id=\"upload_submit\" name=\"submit\" tabindex=\"2\" value=\"Upload\"><\/td>\n\t<\/tr>\n<\/tbody><\/table>\n<input type=\"hidden\" class=\"hidden\" id=\"upload_sesskey\" name=\"sesskey\" value=\"ogvAwW0IXKU62L13\">\n<input type=\"hidden\" name=\"pieform_upload\" value=\"\">\n<\/form>\n"}); }

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 :

There are more Javascript issues on this page:
 - The list of profile icons is disappear

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

This page used the old table renderer and heavily javascript. It may take lots of effort to make it work in non-js version.

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

Test cases

With browser javascript turns off
1. Login as an user
2. Click Content/Profile pictures

Make sure all information are correct and buttons work properly. Open other browser with javascript enabled to compare

Note: You can run Chrome with javascript disabled, and Firefox with javascript enabled.

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

Son Nguyen (ngson2000)
Changed in mahara:
milestone: 1.7.0 → 1.8.0
Robert Lyon (robertl-9)
Changed in mahara:
importance: High → Medium
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.