]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-13766, fixed repository file picker bugs in IE"
authordongsheng <dongsheng>
Tue, 21 Oct 2008 06:39:46 +0000 (06:39 +0000)
committerdongsheng <dongsheng>
Tue, 21 Oct 2008 06:39:46 +0000 (06:39 +0000)
repository/javascript.php

index 4731d8c10b8f04c3f9a5425d8265b7bbf95444b6..36f3eec132d27445e166f229993c4e0af67b8b4c 100644 (file)
@@ -97,7 +97,7 @@ EOD;
 <script type="text/javascript" src="$CFG->httpswwwroot/lib/yui/element/element-beta-min.js"></script>
 <script type="text/javascript" src="$CFG->httpswwwroot/lib/yui/treeview/treeview-min.js"></script>
 <script type="text/javascript" src="$CFG->httpswwwroot/lib/yui/dragdrop/dragdrop-min.js"></script>
-<script type="text/javascript" src="$CFG->httpswwwroot/lib/yui/container/container-min.js"></script>
+<script type="text/javascript" src="$CFG->httpswwwroot/lib/yui/container/container.js"></script>
 <script type="text/javascript" src="$CFG->httpswwwroot/lib/yui/resize/resize-min.js"></script>
 <script type="text/javascript" src="$CFG->httpswwwroot/lib/yui/layout/layout-min.js"></script>
 <script type="text/javascript" src="$CFG->httpswwwroot/lib/yui/connection/connection-min.js"></script>
@@ -139,7 +139,6 @@ var resize = null;
 var filepicker = new YAHOO.widget.Panel('file-picker-$suffix', {
     draggable: true,
     close: true,
-    modal: true,
     underlay: 'none',
     zindex: 666666,
     xy: [50, Dom.getDocumentScrollTop()+20]
@@ -337,10 +336,6 @@ _client.loading = function(type, name) {
     panel.get('element').appendChild(content);
 }
 _client.rename = function(oldname, url, icon, repo_id) {
-    var tree = document.getElementById('treediv-$suffix');
-    if(tree){
-        tree.style.display = 'none';
-    }
     var thumbnail = document.getElementById('fp-grid-panel-$suffix');
     if(thumbnail){
         thumbnail.style.display = 'none';
@@ -365,6 +360,10 @@ _client.rename = function(oldname, url, icon, repo_id) {
     html += '<input type="button" onclick="repository_client_$suffix.hide()" value="$strcancel" /></p>';
     html += '</div>';
     panel.get('element').innerHTML += html;
+    var tree = document.getElementById('treediv-$suffix');
+    if(tree){
+        tree.style.display = 'none';
+    }
 }
 _client.popup = function(url) {
     active_instance = repository_client_$suffix;