mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
The new module selector was not working on IE8. It is now fixed. git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11125 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a342b7d8c8
commit
6cfdca4604
2 changed files with 6 additions and 6 deletions
|
|
@ -605,7 +605,7 @@ _xeModuleSearch = function(){
|
|||
}
|
||||
|
||||
$li = $('<li />').appendTo($siteList);
|
||||
$('<a href="#" >').html(
|
||||
$('<a>').attr('href', '#').html(
|
||||
'<div>' + sDomain + '</div>' +
|
||||
'<span class="icon-circle-arrow-right" style="display:inline-block;float:right;width:16px;height:16px;"></span>'
|
||||
).data('site_srl', list[i].site_srl).appendTo($li);
|
||||
|
|
@ -669,7 +669,7 @@ _xeModuleSearch = function(){
|
|||
for(x in list) {
|
||||
if(!list.hasOwnProperty(x)) continue;
|
||||
$li = $('<li />').appendTo($moduleTypeList);
|
||||
$('<a href="#" >').html(
|
||||
$('<a>').attr('href', '#').html(
|
||||
'<div>'+list[x].title+'</div>' +
|
||||
'<span class="icon-circle-arrow-right" style="display:inline-block;float:right;width:16px;height:16px;"></span>'
|
||||
).data('moduleInstanceList', list[x].list).appendTo($li);
|
||||
|
|
@ -709,7 +709,7 @@ _xeModuleSearch = function(){
|
|||
if(!list.hasOwnProperty(x)) continue;
|
||||
|
||||
$li = $('<li />').appendTo($moduleInstanceList);
|
||||
$('<a href="#" >').html(
|
||||
$('<a>').attr('href', '#').html(
|
||||
'<div>'+list[x].browser_title+'</div>'
|
||||
).data('module_srl', list[x].module_srl).appendTo($li);
|
||||
|
||||
|
|
|
|||
6
modules/admin/tpl/js/admin.min.js
vendored
6
modules/admin/tpl/js/admin.min.js
vendored
|
|
@ -17,11 +17,11 @@ jQuery(function(a){a.fn.xeModuleFinder=function(){this.not(".xe-module-finder").
|
|||
k;f++)e=a("<li />").appendTo(b),a('<button type="button" />').text(g[f].domain).data("site_srl",g[f].site_srl).appendTo(e)}})}).end().find(".tgContent.suggestion").delegate("button","click",function(){var d,b;d=a(this);b=d.closest(".modulefinder");b.find("a.tgAnchor.findsite").trigger("close.tc");a.exec_json("module.procModuleAdminGetList",{site_srl:d.data("site_srl")},function(e){var d=e.module_list,g;if(!e.error&&d){e=b.find(".moduleList").data("module_list",d).removeAttr("disabled").empty();for(g in d)d.hasOwnProperty(g)&&
|
||||
a("<option />").attr("value",g).text(d[g].title).appendTo(e);e.prop("selectedIndex",0).change().focus();e.is(":visible")||e.slideDown(100,function(){b.find(".moduleIdList:not(:visible)").slideDown(100).trigger("show")}).trigger("show")}})}).end().find(".moduleList,.moduleIdList").hide().end().find(".moduleList").change(function(){var d,b,e;d=a(this);b=d.val();e=d.data("module_list");if(e[b]){e=e[b].list;d=d.closest(".modulefinder").find(".moduleIdList").removeAttr("disabled").empty();for(var h in e)e.hasOwnProperty(h)&&
|
||||
a("<option />").attr("value",e[h].module_srl).text(e[h].browser_title).appendTo(d);d.prop("selectedIndex",0).change()}});return this};a(".modulefinder").xeModuleFinder()});
|
||||
jQuery(function(a){_xeModuleSearch=function(){function d(a,b){var e;a.find("li div").width("");a.css("height","");a.css("overflow-y","");a.height()>b&&(e=a.find("li div"),e.width(e.width()-20+"px"),a.css("height",b+"px"),a.css("overflow-y","auto"))}function b(b){var e,f=RegExp(b,"ig"),g=q;j.empty();i=0;for(c=g.length;i<c;i++){e=g[i].domain;if(b){if(!e.match(f))continue;e=e.replace(f,function(a){return'<span class="highlight">'+a+"</span>"})}$li=a("<li />").appendTo(j);a('<a href="#" >').html("<div>"+
|
||||
jQuery(function(a){_xeModuleSearch=function(){function d(a,b){var e;a.find("li div").width("");a.css("height","");a.css("overflow-y","");a.height()>b&&(e=a.find("li div"),e.width(e.width()-20+"px"),a.css("height",b+"px"),a.css("overflow-y","auto"))}function b(b){var e,f=RegExp(b,"ig"),g=q;j.empty();i=0;for(c=g.length;i<c;i++){e=g[i].domain;if(b){if(!e.match(f))continue;e=e.replace(f,function(a){return'<span class="highlight">'+a+"</span>"})}$li=a("<li />").appendTo(j);a("<a>").attr("href","#").html("<div>"+
|
||||
e+'</div><span class="icon-circle-arrow-right" style="display:inline-block;float:right;width:16px;height:16px;"></span>').data("site_srl",g[i].site_srl).appendTo($li)}d(j,x-l.parent("DIV").height())}var e=this,h=a(this),g=h.find(".moduleSearchWindow"),f=g.find(".siteList"),k=g.find(".moduleTypeList"),n=g.find(".moduleInstanceList"),j=f.find("UL"),o=k.find("UL"),m=n.find("UL"),l=g.find("INPUT.siteListSearchInput"),q,x=280;l.keyup(function(){b(l.val())});"undefined"==typeof console&&(console={log:function(){}});
|
||||
h.not(".xe-module-search").addClass("xe-module-search").find("a.tgAnchor.moduleSearch").bind("before-open.tc",function(){var e;e=a(this);j.empty();m.empty();k.hide();n.hide();a.exec_json("admin.getSiteAllList",{domain:""},function(d){var j=d.site_list;d.error||!a.isArray(j)?e.trigger("close.tc"):(q=j,b(l.val()),l.focus())})}).end().find(".tgContent .siteListUL").delegate("a","click",function(b){var e;e=a(this);e.closest(".modulefinder");o.empty();n.hide();a.exec_json("module.procModuleAdminGetList",
|
||||
{site_srl:e.data("site_srl")},function(b){var f=b.module_list,l;if(!b.error&&f){for(l in f)f.hasOwnProperty(l)&&($li=a("<li />").appendTo(o),a('<a href="#" >').html("<div>"+f[l].title+'</div><span class="icon-circle-arrow-right" style="display:inline-block;float:right;width:16px;height:16px;"></span>').data("moduleInstanceList",f[l].list).appendTo($li));g.find(".moduleTypeList").show();d(o,x);j.find("li").removeClass("on");e.parent("li").addClass("on")}});b.preventDefault()}).end().find(".moduleTypeListUL").delegate("a",
|
||||
"click",function(b){var f,j;f=a(this);if(j=f.data("moduleInstanceList")){e.sSelectedModuleType=f.text();m.empty();for(var l in j)j.hasOwnProperty(l)&&($li=a("<li />").appendTo(m),a('<a href="#" >').html("<div>"+j[l].browser_title+"</div>").data("module_srl",j[l].module_srl).appendTo($li));n.show();d(m,x);o.find("li").removeClass("on");f.parent("li").addClass("on");b.preventDefault()}}).end().find(".moduleInstanceListUL").delegate("a","click",function(b){$this=a(this);e.sSelectedModuleInstanceName=
|
||||
{site_srl:e.data("site_srl")},function(b){var f=b.module_list,l;if(!b.error&&f){for(l in f)f.hasOwnProperty(l)&&($li=a("<li />").appendTo(o),a("<a>").attr("href","#").html("<div>"+f[l].title+'</div><span class="icon-circle-arrow-right" style="display:inline-block;float:right;width:16px;height:16px;"></span>').data("moduleInstanceList",f[l].list).appendTo($li));g.find(".moduleTypeList").show();d(o,x);j.find("li").removeClass("on");e.parent("li").addClass("on")}});b.preventDefault()}).end().find(".moduleTypeListUL").delegate("a",
|
||||
"click",function(b){var f,j;f=a(this);if(j=f.data("moduleInstanceList")){e.sSelectedModuleType=f.text();m.empty();for(var l in j)j.hasOwnProperty(l)&&($li=a("<li />").appendTo(m),a("<a>").attr("href","#").html("<div>"+j[l].browser_title+"</div>").data("module_srl",j[l].module_srl).appendTo($li));n.show();d(m,x);o.find("li").removeClass("on");f.parent("li").addClass("on");b.preventDefault()}}).end().find(".moduleInstanceListUL").delegate("a","click",function(b){$this=a(this);e.sSelectedModuleInstanceName=
|
||||
$this.text();e.sSelectedModuleSrl=$this.data("module_srl");h.trigger("moduleSelect",[e.sSelectedModuleType,e.sSelectedModuleInstanceName,e.sSelectedModuleSrl]);a(".tgAnchor.moduleSearch").trigger("close.tc");b.preventDefault()});return this};a.fn.xeModuleSearch=function(){a(this).each(_xeModuleSearch)};a(".moduleSearch").xeModuleSearch()});
|
||||
jQuery(function(a){function d(a,b){for(var d=0,f=0;a&&a!=b;)d+=a.offsetTop,f+=a.offsetLeft,a=a.offsetParent;return{top:d,left:f}}var b=a('<tr class="placeholder"><td> </td></tr>');a.fn.xeSortableTable=function(){this.not(".xe-sortable-table").addClass("xe-sortable-table").delegate("button.dragBtn","mousedown.st",function(e){var h,g,f,k,n,j,o,m,l,q;if(1==e.which){g=a(this);f=g.closest("tr");k=g.closest("table");q=k.get(0).offsetParent;g=f.height();n=f.width();before_event=a.Event("before-drag.st");
|
||||
k.trigger(before_event);if(before_event.isDefaultPrevented())return!1;h=e.pageY;j=d(f.get(0),q);$clone=f.attr("target",!0).clone(!0).appendTo(k);l=(e=k.find("thead th")).length;e.filter("[colspan]").attr("colspan",function(a,b){l+=b-1});b.find("td").attr("colspan",l);o=[];k.find("tbody>tr:not([target],.sticky,:hidden)").each(function(){var b=a(this),e;e=d(this,q);o.push({top:e.top,bottom:e.top+b.height(),$item:b})});$clone.addClass("draggable").css({position:"absolute",opacity:0.6,width:n,height:g,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue