Author: lombardot
Date: 2010-04-28 10:56:46 +0200 (Wed, 28 Apr 2010)
New Revision: 29288

Modified:
   plugins/sfEmailMeAFireShotPlugin/lib/helper/sfEmailMeAFireShotHelper.php
Log:
[sfEmailMeAFireShotPlugin] Lombardot Add editmode and set it by default

Modified: 
plugins/sfEmailMeAFireShotPlugin/lib/helper/sfEmailMeAFireShotHelper.php
===================================================================
--- plugins/sfEmailMeAFireShotPlugin/lib/helper/sfEmailMeAFireShotHelper.php    
2010-04-28 08:54:11 UTC (rev 29287)
+++ plugins/sfEmailMeAFireShotPlugin/lib/helper/sfEmailMeAFireShotHelper.php    
2010-04-28 08:56:46 UTC (rev 29288)
@@ -1,6 +1,6 @@
 <?php
 
-function link_sfEmailMeAFireShot($content,$action="email"){
+function link_sfEmailMeAFireShot($content,$action="edit"){
        return content_tag('span',
                
content_tag('a',$content,array('onclick'=>'shotAnd("'.$action.'"); return 
false;','href'=>'#')),
        array('id'=>'sfEmailMeAFireShot'));
@@ -25,7 +25,8 @@
                if (typeof(FireShotAPI) != "undefined" && 
FireShotAPI.isAvailable()){
                        if(action=="email")
                                FireShotAPI.emailPage(true);
-                                               
+                       if(action=="edit")
+                               FireShotAPI.editPage(true);                     
                        
                }else{
                        $("#sfEmailMeAFireShot").html( "<b>Not installed</b>, " 
+ 

-- 
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.

Reply via email to