add remoteload event #5490

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
@cielavenir

I'd like Modal Header to be changed dynamically, as described in
http://jsrun.it/cielavenir/modaltest

@cielavenir

This comment has been minimized.

Show comment Hide comment
@cielavenir

cielavenir Oct 14, 2012

In this case, this code is actually enough...

document.getElementById('html_modal').onajaxSuccess=function(){
    document.getElementById('htmlModalLabel').innerText=document.getElementById('modal_title').innerText;
};
document.getElementById('html_modal').onhidden=function(){
    $(this).removeData('modal');
    $('#htmlModalLabel').text('title');
    $('#htmlModalBody').html('<p class="text-info">connecting...</p>');
}

The key is ajaxSuccess event.

In this case, this code is actually enough...

document.getElementById('html_modal').onajaxSuccess=function(){
    document.getElementById('htmlModalLabel').innerText=document.getElementById('modal_title').innerText;
};
document.getElementById('html_modal').onhidden=function(){
    $(this).removeData('modal');
    $('#htmlModalLabel').text('title');
    $('#htmlModalBody').html('<p class="text-info">connecting...</p>');
}

The key is ajaxSuccess event.

@fat

This comment has been minimized.

Show comment Hide comment
@fat

fat Oct 18, 2012

Owner

please make pull requests against -wip branches thanks!

Owner

fat commented Oct 18, 2012

please make pull requests against -wip branches thanks!

@fat fat closed this Oct 18, 2012

@cielavenir

This comment has been minimized.

Show comment Hide comment
@cielavenir

cielavenir Oct 23, 2012

Well, excuse me, but am I allowed to send pull request against master branch?

Well, excuse me, but am I allowed to send pull request against master branch?

@cielavenir

This comment has been minimized.

Show comment Hide comment
@cielavenir

cielavenir Oct 23, 2012

Oops in this project wip branch isn't master... I didn't know.
Anyway considering jtward's issue is also closed, this doesn't need to be reopened...

Oops in this project wip branch isn't master... I didn't know.
Anyway considering jtward's issue is also closed, this doesn't need to be reopened...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment