Author: johnnyoffline
Date: 2010-01-28 00:12:33 +0100 (Thu, 28 Jan 2010)
New Revision: 27260
Modified:
plugins/pkContextCMSPlugin/trunk/lib/helper/pkContextCMSHelper.php
plugins/pkContextCMSPlugin/trunk/modules/pkContextCMS/templates/_renamePage.php
Log:
fixed Breadcrumb Rename button failure
Modified: plugins/pkContextCMSPlugin/trunk/lib/helper/pkContextCMSHelper.php
===================================================================
--- plugins/pkContextCMSPlugin/trunk/lib/helper/pkContextCMSHelper.php
2010-01-27 23:00:28 UTC (rev 27259)
+++ plugins/pkContextCMSPlugin/trunk/lib/helper/pkContextCMSHelper.php
2010-01-27 23:12:33 UTC (rev 27260)
@@ -26,6 +26,7 @@
$response->addJavascript('/pkToolkitPlugin/js/jquery.autogrow.js'); //
Autogrowing Textareas
// $response->addJavascript('/pkToolkitPlugin/js/jquery.pulse.js'); // Ajax
update highlight a color // I turned this off because we aren't using it right
now 1-8-2010 JB
$response->addJavascript('/pkToolkitPlugin/js/jquery.keycodes-0.2.js');
// keycodes
+ $response->addJavascript('/pkToolkitPlugin/js/jquery.timer-1.2.js');
$webDir = sfConfig::get('sf_pkContextCMS_web_dir', '/pkContextCMSPlugin');
$response->addJavascript("$webDir/js/pkContextCMS.js");
Modified:
plugins/pkContextCMSPlugin/trunk/modules/pkContextCMS/templates/_renamePage.php
===================================================================
---
plugins/pkContextCMSPlugin/trunk/modules/pkContextCMS/templates/_renamePage.php
2010-01-27 23:00:28 UTC (rev 27259)
+++
plugins/pkContextCMSPlugin/trunk/modules/pkContextCMS/templates/_renamePage.php
2010-01-27 23:12:33 UTC (rev 27260)
@@ -29,6 +29,7 @@
var renameControls =
$('#pk-breadcrumb-rename-controls');
var renameSpacer =
$('#pk-breadcrumb-rename-title-spacer');
+ var renameSubmitBtn = $('#a-breadcrumb-rename-submit');
var renameInput = $('#pk-breadcrumb-rename-title');
var renameInputWidth =
checkInputWidth(renameSpacer.width());
renameInput.css('width', renameInputWidth);
@@ -52,8 +53,21 @@
})
renameInput.blur(function(){
- renameControls.hide();
+ $(this).oneTime(250, "hide", function() {
+ renameControls.hide();
+ });
+ // Tried to capture the click on the submit and
cancel the hide
+ // $(document).mousedown(function(e){
+ // target = $(e.target);
+ // if (!target.hasClass('a-submit')) {
+ // renameControls.hide();
+ // }
+ // })
})
+
+ renameSubmitBtn.click(function(){
+ renameInput.focus();
+ })
renameInput.keydown(function(e){
liveTitle = renameInput[0].value;
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.