1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-28 02:10:46 +02:00

Menu Manager selection re-write. To enable/test add the following to e107_config.php :

define('e_DEBUG_MENUMANAGER', true);
This commit is contained in:
Cameron
2017-01-02 14:04:14 -08:00
parent 31d929ec98
commit d8258e8174
4 changed files with 331 additions and 108 deletions

View File

@@ -641,6 +641,12 @@ $(document).ready(function()
var link = $(this).attr('data-url');
var layout= $(this).attr('data-layout');
$('#curLayout').val(layout);
$('ul.e-mm-selector').hide();
$('form#e-mm-selector').attr('action',link);
var text = $(this).text();
$(this).html(text + ' <i class="e-mm-select-loading fa fa-spin fa-spinner"></i>');
@@ -663,10 +669,33 @@ $(document).ready(function()
});
$('#menu_iframe').load(function() {
this.style.height = this.contentWindow.document.body.offsetHeight + 100 + 'px';
this.style.height = this.contentWindow.document.body.offsetHeight + 400 + 'px';
// alert(this.style.height);
// this.style.height = '100vh';
});
$("a.e-mm-selector").click(function(e){
var hash = $('#curLayout').val();
// alert(hash);
var selector = 'ul.dropdown-menu.e-mm-selector.' + hash;
$(selector).toggle();
$(e).preventDefault();
});
$(".e-mm-selector li input").click(function(e){
$("ul.dropdown-menu.e-mm-selector").css('display','none');
});
$(".e-shake" ).effect("shake",{times: 10, distance: 2},20);