Ajout du module de news
This commit is contained in:
@@ -52,5 +52,5 @@ $(document).ready(function(){
$('#todo').resizable();
$('#todo').draggable();
|
||||
|
||||
$('#newTaskFieldset').toggle();
|
||||
|
||||
});
|
||||
});
|
||||
|
@@ -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;
|
||||
|
@@ -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')
|
||||
});
|
||||
}
|
||||
});}
|
||||
});
|
||||
|
@@ -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')
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
42
js/main.js
42
js/main.js
@@ -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();
|
||||
});*/
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user