1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

Closes #134. Also added Ajax Modal Window

This commit is contained in:
Cameron
2013-03-02 21:07:42 -08:00
parent 66ca489509
commit dab2f257de
6 changed files with 481 additions and 170 deletions

View File

@@ -34,14 +34,21 @@ $(document).ready(function()
$('body').on('hidden', '.modal', function () {
$(this).removeData('modal');
$('#uiModal .modal-label').text('Loading...');
$('#uiModal .modal-body').text(' ');
$('#uiModal .modal-body').html(' ');
});
$('a[data-toggle="modal"]').on('click', function()
{
var link = $(this).attr('href');
// $('#uiModal .modal-body').html(link);
alert(link);
}
);
/*
$('a[data-toggle="modal"]').on('click', function()
@@ -333,24 +340,7 @@ $(document).ready(function()
$(function() {
//$(".e-menumanager-delete").live("click", function(e){
$(".e-menumanager-delete").click(function(e){
e.preventDefault();
var area = 'remove';
var remove = $(this).attr('id');
var opt = remove.split('-');
var hidem = "#block-" + opt[1] +'-' + opt[2];
$(hidem).hide("slow");
// alert(hidem);
$.ajax({
type: "POST",
url: "menus.php?ajax_used=1",
data: { removeid: remove, area: area }
// data: { linkid: linkid, neworder: neworder }
}).done(function( msg ) {
// alert(msg );
});
});
$( ".column" ).sortable({
connectWith: ".column",