×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Comment are not closed for editing after sending

Comment are not closed for editing after sending 14 years 11 months ago #8229

  • zach sharoni
  • zach sharoni's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
It seems to me a bug when a commenter send a comment but the editing window is still opened for a new comment. the right thing is to close the editing and to accept the new comment.

can you please suggest a workaround

Comment are not closed for editing after sending 14 years 11 months ago #8231

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
When he sends the comment, then the form is empty. He can write another comment - this is not a bug. It is just the way the template are developed.

Comment are not closed for editing after sending 14 years 11 months ago #8236

  • zach sharoni
  • zach sharoni's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
It seems to me a usability problem. Why on earth a user will want to create another comment after he just published a comment. In this forum the editing comment is not opened as well after sending.

If it is not a bug, how can I change this behavior myself?

Zach

Comment are not closed for editing after sending 14 years 10 months ago #8263

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
What behavior do you want to change? The only thing I can think of is the comment form/box being automatically erased after the comment is submitted. Is this what you want?

Comment are not closed for editing after sending 14 years 10 months ago #8273

  • zach sharoni
  • zach sharoni's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Yes, this kind of behavior might solve my problem

Comment are not closed for editing after sending 14 years 10 months ago #8309

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
I cannot reproduce your error.

I can help you to make code changes to make the Comment Form completely disappear after a user edits or posts a comment? That's easy to do, but as soon as they refresh the page it will just reappear :)

That's actually a decent feature idea, I've seen other comment systems do a thing like that. If you want to do it, here's the steps...

(1) Open the file /components/com_comment/joscomment/jscripts/client.js in a UTF-8 editor (if you are on Windows 7 and not XP/Vista then you can use built-in Notepad).

(2) Search for this text:
//JOSC_refreshPage('', idsave);

(3) Replace that line with this text:
document.getElementById('joomlacommentform').innerHTML = '';


...with that change, after the comment is submitted then the comment form will vanish (until the user refreshes the page). You could change the '' after innerHTML to whatever HTML code you want, maybe just some text saying Thank you or something :)

Comment are not closed for editing after sending 14 years 10 months ago #8314

  • zach sharoni
  • zach sharoni's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Thanks Jonus.

I changed the file as you suggested. but it seems that my change is ignored. I also did some compilation bugs, but my component still behave the same. is there any procedure of "activating" the change for js files?

Thanks,
Zach

Comment are not closed for editing after sending 14 years 10 months ago #8316

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Make sure that you empty the cache ;)
  • Page:
  • 1
Time to create page: 0.112 seconds