Commits

matteosister  committed 8597895

sfPropel15 to sfPropelORM

  • Participants
  • Parent commits 4dc5842

Comments (0)

Files changed (4)

File lib/widget/sfWidgetFormInputTags.php

 
         if (!$taggable->isNew()) {
             $tags = $taggable->getTags();
-            $html .= '<ul class="checkbox_list" id="sfPropel15TaggablePlugin">';
+            $html .= '<ul class="checkbox_list" id="sfPropelORMTaggablePlugin">';
             foreach ($tags as $i => $tag) {
                 $html .= '<li>';
                 $html .= '<a href="javascript:void(0)" class="tag-delete" id="'.$tag->getId().'">'.$tag.'</a>';
     public function getJavaScripts()
     {
         return array(
-            '/sfPropel15TaggableBehaviorPlugin/js/jquery-1.5.min.js',
-            '/sfPropel15TaggableBehaviorPlugin/js/jquery-ui-1.8.9.custom.min.js',
-            '/sfPropel15TaggableBehaviorPlugin/js/sfPropel15TaggableBehaviorPlugin'
+            '/sfPropelORMTaggableBehaviorPlugin/js/jquery-1.5.min.js',
+            '/sfPropelORMTaggableBehaviorPlugin/js/jquery-ui-1.8.9.custom.min.js',
+            '/sfPropelORMTaggableBehaviorPlugin/js/sfPropelORMTaggableBehaviorPlugin'
         );
     }
 
     public function  getStylesheets()
     {
         return array(
-            '/sfPropel15TaggableBehaviorPlugin/css/smoothness/jquery-ui-1.8.9.custom.css' => 'screen',
-            '/sfPropel15TaggableBehaviorPlugin/css/sfPropel15TaggableBehaviorPlugin.css' => 'screen'
+            '/sfPropelORMTaggableBehaviorPlugin/css/smoothness/jquery-ui-1.8.9.custom.css' => 'screen',
+            '/sfPropelORMTaggableBehaviorPlugin/css/sfPropelORMTaggableBehaviorPlugin.css' => 'screen'
         );
     }
 }

File web/css/sfPropel15TaggableBehaviorPlugin.css

 }
 
 .ui-autocomplete-loading { 
-    background: white url('/sfPropel15TaggableBehaviorPlugin/images/ui-anim_basic_16x16.gif') right center no-repeat;
+    background: white url('/sfPropelORMTaggableBehaviorPlugin/images/ui-anim_basic_16x16.gif') right center no-repeat;
 }
 
 a.tag-delete {
-    background: url('/sfPropel15TaggableBehaviorPlugin/images/delete.png') no-repeat left !important;
+    background: url('/sfPropelORMTaggableBehaviorPlugin/images/delete.png') no-repeat left !important;
     margin-right: 1em;
     color: #333;
     outline: none;
     text-decoration: none !important;
 }
 
-ul#sfPropel15TaggablePlugin {
+ul#sfPropelORMTaggablePlugin {
     margin: .5em 0 .7em !important;
 }

File web/js/sfPropel15TaggableBehaviorPlugin.js

-
-
-/*
- *  matteosister <matteog@gmail.com>
- *  Just for fun...
- */
-
-
-jQuery(document).ready( function() {
-
-    jQuery('ul#sfPropel15TaggablePlugin li input').each( function() {
-        jQuery(this).change(reloadTagsLayout);
-    });
-});
-
-function reloadTagsLayout()
-{
-    jQuery('ul#sfPropel15TaggablePlugin li input').each( function() {
-        if (jQuery(this).attr('checked')) {
-            jQuery(this).siblings('label').css('text-decoration', 'line-through');
-        } else {
-            jQuery(this).siblings('label').css('text-decoration', 'none');
-        }
-    });
-}

File web/js/sfPropelORMTaggableBehaviorPlugin.js

+
+
+/*
+ *  matteosister <matteog@gmail.com>
+ *  Just for fun...
+ */
+
+
+jQuery(document).ready( function() {
+
+    jQuery('ul#sfPropelORMTaggablePlugin li input').each( function() {
+        jQuery(this).change(reloadTagsLayout);
+    });
+});
+
+function reloadTagsLayout()
+{
+    jQuery('ul#sfPropelORMTaggablePlugin li input').each( function() {
+        if (jQuery(this).attr('checked')) {
+            jQuery(this).siblings('label').css('text-decoration', 'line-through');
+        } else {
+            jQuery(this).siblings('label').css('text-decoration', 'none');
+        }
+    });
+}