Skip to content

Commit

Permalink
"Repository: repository_get_client(), treeview node doesnot support o…
Browse files Browse the repository at this point in the history
…nXXX anymore, fix the problem of subsribing event MDL-13766"
  • Loading branch information
dongsheng committed Oct 13, 2008
1 parent 342e25f commit 7ad6741
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion repository/javascript.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,12 @@ function _client() {
panel.get('element').appendChild(content);
}
_client.rename = function(oldname, url, icon, repo_id) {
var tree = document.getElementById('treediv-$suffix');
tree.style.display = 'none';
var header = document.getElementById('repo-tb-$suffix');
header.style.display = 'none';
var footer = document.getElementById('fp-footer-$suffix');
footer.style.display = 'none';
var panel = new YAHOO.util.Element('panel-$suffix');
var html = '<div class="fp-rename-form">';
_client.repositoryid=repo_id;
Expand All @@ -352,7 +358,7 @@ function _client() {
html += '<input type="button" onclick="repository_client_$suffix.download()" value="$strdownbtn" />';
html += '<input type="button" onclick="repository_client_$suffix.hide()" value="$strcancel" /></p>';
html += '</div>';
panel.get('element').innerHTML = html;
panel.get('element').innerHTML += html;
}
_client.popup = function(url) {
active_instance = repository_client_$suffix;
Expand Down Expand Up @@ -414,6 +420,7 @@ function _client() {
_client.print_footer = function() {
var panel = document.getElementById('panel-$suffix');
var footer = document.createElement('DIV');
footer.id = 'fp-footer-$suffix';
panel.appendChild(footer);
footer.innerHTML += _client.uploadcontrol();
footer.innerHTML += _client.makepage();
Expand Down

0 comments on commit 7ad6741

Please sign in to comment.