Skip to content
Snippets Groups Projects
Commit e7506405 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Qual: Code is now simpler using jQuery. Removed rubbish javascript.

parent 7a65ee7c
No related branches found
No related tags found
No related merge requests found
......@@ -134,7 +134,7 @@ NewBackup=New backup
GenerateBackup=Generate backup
Backup=Backup
Restore=Restore
RunCommandSummary=Backup will be done through the following command
RunCommandSummary=Backup has been launched with the following command
WebServerMustHavePermissionForCommand=Your web server must have the permission to run such commands
BackupResult=Backup result
BackupFileSuccessfullyCreated=Backup file successfully generated
......
/*
* http://deepliquid.com/content/Jcrop.html
*/
* http://deepliquid.com/content/Jcrop.html
*/
//
// \file htdocs/lib/lib_photoresize.js
// \brief File that include javascript functions for croping feature
// \version $Id$
//
jQuery(function() {
jQuery('#cropbox').Jcrop({
......@@ -12,18 +17,17 @@ jQuery(function() {
function updateCoords(c)
{
$('#x').val(c.x);
$('#y').val(c.y);
$('#x2').val(c.x2);
$('#y2').val(c.y2);
$('#w').val(c.w);
$('#h').val(c.h);
jQuery('#x').val(c.x);
jQuery('#y').val(c.y);
jQuery('#x2').val(c.x2);
jQuery('#y2').val(c.y2);
jQuery('#w').val(c.w);
jQuery('#h').val(c.h);
};
function checkCoords()
{
if (parseInt($('#w').val())) return true;
if (parseInt(jQuery('#w').val())) return true;
alert('Please select a crop region then press submit.');
return false;
};
\ No newline at end of file
......@@ -857,10 +857,10 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
print '<script type="text/javascript" src="'.DOL_URL_ROOT.'/includes/jquery/js/jquery-1.4.2.min'.$ext.'"></script>'."\n";
print '<script type="text/javascript" src="'.DOL_URL_ROOT.'/includes/jquery/js/jquery-ui-1.8.4.custom.min'.$ext.'"></script>'."\n";
// This one is required for lot of Ajax features
// This one is required for some Ajax features
if (! defined('DISABLE_PROTOTYPE'))
{
print '<!-- Includes for Prototype (Used by Scriptaculous) -->'."\n";
print '<!-- Includes for Prototype -->'."\n";
print '<script type="text/javascript" src="'.DOL_URL_ROOT.'/includes/scriptaculous/lib/prototype'.$mini.$ext.'"></script>'."\n";
}
}
......
......@@ -76,7 +76,7 @@ function reloadGraph() {
g.setShowDur(booShowDurations);
g.setCaptionType(barText);
g.setFormat(graphFormat);
g.Draw($("#tabs").width()-40);
g.Draw(jQuery("#tabs").width()-40);
}
......@@ -108,7 +108,7 @@ for ($tcursor=0; $tcursor < $tnums; $tcursor++) {
}
}
?>
g.Draw($("#tabs").width()-40);
g.Draw(jQuery("#tabs").width()-40);
setTimeout('g.DrawDependencies()',100);
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment