mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Qual: Code is now simpler using jQuery. Removed rubbish javascript.
This commit is contained in:
parent
7a65ee7cb3
commit
e7506405c8
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,12 @@
|
|||
/*
|
||||
* 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;
|
||||
};
|
||||
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user