From 865607b319f63a4790774f6c733c0544f1d3ca28 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 23 Oct 2008 08:54:49 +0000 Subject: [PATCH] MDL-16784 Added a hack for ie6, which causes a little glitch in ie5.5, but nothing major --- repository/javascript.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/repository/javascript.php b/repository/javascript.php index aa6d285c84d..f552dd97ab2 100644 --- a/repository/javascript.php +++ b/repository/javascript.php @@ -89,6 +89,11 @@ function repository_get_client($context) { .fp-grid p{margin:0;padding:0;background: #FFFFCC} .fp-grid .label{height:48px;text-align:center} .fp-grid span{background: #EEF9EB;color:gray} +/* Fix for IE6 */ +* html .yui-skin-sam .yui-panel .hd{ + margin-right: -10px; + width: 660px; +} EOD; @@ -709,7 +714,7 @@ _client.makepage = function() { if(_client.ds.pages) { str += '
'; for(var i = 1; i <= _client.ds.pages; i++) { - if(!_client.ds.search_result){ + if(!_client.ds.search_result){ str += ''; } else { str += ''; @@ -866,17 +871,17 @@ success: function(o) { width : "30em", fixedcenter : true, zindex: 766667, - visible : false, + visible : false, constraintoviewport : true, - buttons : [ + buttons : [ { text:"Submit",handler: function() { _client.viewbar.set('disabled', false); _client.loading('load'); YAHOO.util.Connect.setForm('fp-search-form', false, false); this.cancel(); var trans = YAHOO.util.Connect.asyncRequest('POST', '$CFG->httpswwwroot/repository/ws.php?action=search&env='+_client.env, _client.req_cb); - },isDefault:true - }, + },isDefault:true + }, {text:"Cancel",handler:function() {this.cancel()}} ] });