Ajout du module de news

This commit is contained in:
Chouchen
2010-09-21 15:09:31 +00:00
parent 2394218c17
commit 8ece766934
8 changed files with 97 additions and 87 deletions

View File

@@ -52,5 +52,5 @@ $(document).ready(function(){ $('#todo').resizable(); $('#todo').draggable();
$('#newTaskFieldset').toggle();
});
});

View File

@@ -1,27 +1,7 @@
$(document).ready(function(){
var zIndex = 0;
$('#menu-bar').prepend($('#blog-links-manager'));
function make_draggable(elements)
{
/* Elements is a jquery object: */
elements.draggable({
snap:true,
containment:'parent',
start:function(e,ui){ ui.helper.css('z-index',++zIndex); },
stop:function(e,ui){
/* Sending the z-index and positon of the note to update_position.php via AJAX GET: */
$.get('ajax/update_position_config.php',{
x : ui.position.left,
y : ui.position.top,
id : ui.helper.attr('id')
});
}
});
}
//affichage des blogs
$("#blogs").html("<img src=\"images/interface/ajax_load.gif\"/> Loading Blogs...");
var tmp;

View File

@@ -216,23 +216,4 @@ $(document).ready(function(){
/* A helper function for converting a set of elements to draggables: */
make_draggable($('.jclock'));
var zIndex = 0;
function make_draggable(elements)
{
/* Elements is a jquery object: */
elements.draggable({
snap:true,
containment:'parent',
start:function(e,ui){ ui.helper.css('z-index',++zIndex); },
stop:function(e,ui){
/* Sending the z-index and positon of the note to update_position.php via AJAX GET: */
$.get('update_position_config.php',{
x : ui.position.left,
y : ui.position.top,
id : ui.helper.attr('id')
});
}
});}
});

View File

@@ -26,24 +26,5 @@ $(document).ready(function(){
/* A helper function for converting a set of elements to draggables: */
make_draggable($('#weather'));
var zIndex = 0;
function make_draggable(elements)
{
/* Elements is a jquery object: */
elements.draggable({
snap:true,
containment:'parent',
start:function(e,ui){ ui.helper.css('z-index',++zIndex); },
stop:function(e,ui){
/* Sending the z-index and positon of the note to update_position.php via AJAX GET: */
$.get('ajax/update.php',{
x : ui.position.left,
y : ui.position.top,
id : ui.helper.attr('id')
});
}
});
}
});

View File

@@ -35,6 +35,27 @@
{
window.open("calculator.html", "Calc", "menubar=0,resizable=0,width=320,height=360")
}
var zIndex = 0;
function make_draggable(elements)
{
/* Elements is a jquery object: */
elements.draggable({
snap:true,
containment:'parent',
start:function(e,ui){ ui.helper.css('z-index',++zIndex); },
stop:function(e,ui){
/* Sending the z-index and positon of the note to update_position.php via AJAX GET: */
$.get('ajax/update.php',{
x : ui.position.left,
y : ui.position.top,
id : ui.helper.attr('id')
});
}
});
}
$(document).ready(function(){
$('body').prepend('<div id="menu-bar"></div>');
$('#menu-bar').prepend($('#config-menu'));
@@ -57,26 +78,5 @@ $(document).ready(function(){
'hideOnContentClick': false,
'padding' : 15
});
/*$('#config-submit').live('click',function(e){
$(this).replaceWith('<img src="images/interface/ajax_load.gif" style="margin:30px auto;display:block" />');
var data3 = {
'clock' : $('input[type=radio][name=clock_group]:checked').attr('value'),
'weather' : $('input[type=radio][name=weather_group]:checked').attr('value'),
'notes' : $('input[type=radio][name=notes_group]:checked').attr('value'),
'search' : $('input[type=radio][name=search_group]:checked').attr('value'),
'links' : $('input[type=radio][name=links_group]:checked').attr('value'),
'blogs' : $('input[type=radio][name=blogs_group]:checked').attr('value'),
'todo' : $('input[type=radio][name=todo_group]:checked').attr('value')
};
$.post('ajax/post-config.php',data3,function(msg3){
if(msg3=="1"){
location.reload();
}
});
e.preventDefault();
});*/
});