tropotek

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • in reply to: OnClose Event For Dialog boxes #87535
    tropotek
    Participant

    That's fantastic news.

    I look forward to the 3.5 release.

    in reply to: OnClose Event For Dialog boxes #87464
    tropotek
    Participant

    I have spent the day trying to get TinyMce to work and found some more things that may be of intrest.

    An event like onShow would also help in the base system, Mainly for the view dialog as there is no hooks that I could find to modify the data that is shown.

    Using the method outlined in the previous post I added an onShow event after the viewModal() functions are called. This was helpful so I could run jquery on elements in the view dialog.

    A major issue I found is, that the view and edit dialog boxes are two seperate dialog instances but they have duplicate id values on the data. This creates havoc when you are looking for a form element by id and receive a td element because you viewed the data before editing the data.

    However I added to this line in the view code (around line 870:grid.fomedit.js):

    $(”td:eq(”+(cp-1)+”)”,trdata[0]).append(””+tmp+””).attr(”id”, 'v_' + nm);

    Unfortunatly this stops the elements updating when using the next and previous buttons.

    So adding the following into fillData() makes it work:

    in reply to: OnClose Event For Dialog boxes #87460
    tropotek
    Participant

    Thanks for the tip Tony, but it didn't achieve the desired result. To get this to work you would have to add the code to the afterShowForm event so the dialog box exists first.

    However I have had a play with the source code and it may be something you can add to the project. If we modify the hideModel() function a little like the following code. There could be better parameters passed to onClose if any,

Viewing 3 replies - 1 through 3 (of 3 total)

Stay connected with us in your favorite flavor!