mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Merged upstream changes.
This commit is contained in:
@@ -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>');
|
||||
|
||||
@@ -650,7 +656,7 @@ $(document).ready(function()
|
||||
$('.e-mm-select-loading').hide();
|
||||
});
|
||||
|
||||
$(this).preventDefault();
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
@@ -661,12 +667,28 @@ $(document).ready(function()
|
||||
$("#menu_iframe").attr("src",link);
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#menu_iframe').load(function() {
|
||||
this.style.height = this.contentWindow.document.body.offsetHeight + 100 + 'px';
|
||||
});
|
||||
|
||||
|
||||
|
||||
$("a.e-mm-selector").click(function(e){
|
||||
|
||||
var hash = $('#curLayout').val();
|
||||
// alert(hash);
|
||||
|
||||
var selector = 'ul.dropdown-menu.e-mm-selector.' + hash;
|
||||
|
||||
$(selector).toggle();
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
$(".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);
|
||||
|
||||
|
@@ -271,6 +271,8 @@ $(document).ready(function()
|
||||
$(document).on("click", ".e-comment-delete", function(){
|
||||
|
||||
var url = $(this).attr("data-target");
|
||||
var table = $(this).attr("data-type");
|
||||
var itemid = $(this).attr("data-itemid");
|
||||
var sp = $(this).attr('id').split("-");
|
||||
var id = "#comment-" + sp[3];
|
||||
var total = parseInt($("#e-comment-total").text());
|
||||
@@ -278,7 +280,7 @@ $(document).ready(function()
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: url + '?ajax_used=1&mode=delete',
|
||||
data: { itemid: sp[3] },
|
||||
data: { id: sp[3], itemid: itemid, table: table },
|
||||
success: function(data) {
|
||||
var a = $.parseJSON(data);
|
||||
|
||||
|
Reference in New Issue
Block a user