Author: johnnyoffline
Date: 2010-09-08 21:45:27 +0200 (Wed, 08 Sep 2010)
New Revision: 30858
Modified:
plugins/sfDoctrineActAsTaggablePlugin/trunk/web/js/pkTagahead.js
Log:
Added a container around the typeahead input + add buttons. This helps make it
easier to wrangle styling of the widget
Modified: plugins/sfDoctrineActAsTaggablePlugin/trunk/web/js/pkTagahead.js
===================================================================
--- plugins/sfDoctrineActAsTaggablePlugin/trunk/web/js/pkTagahead.js
2010-09-08 14:57:33 UTC (rev 30857)
+++ plugins/sfDoctrineActAsTaggablePlugin/trunk/web/js/pkTagahead.js
2010-09-08 19:45:27 UTC (rev 30858)
@@ -1,4 +1,4 @@
-// You need to bring in jQuery first in order for this to work
+s// You need to bring in jQuery first in order for this to work
//
// Call it like this:
// pkTagahead(<?php echo json_encode(url_for("taggableComplete/complete")) ?>);
@@ -177,6 +177,7 @@
// Establish the quick enhancement
var tagInput = $(this);
+ var typeAheadContainer = $('<div />');
var typeAheadBox = $('<input />');
typeAheadBox.attr('type', 'text');
@@ -184,9 +185,10 @@
addButton.text('Add');
addButton.attr({'href' : '#', 'class' : 'a-btn icon a-add
add-tags-link', 'title' : 'Add these tags'});
+
typeAheadContainer.addClass('a-type-ahead-container').append(typeAheadBox).append(addButton);
+
tagInput.hide();
- tagInput.parent().append(typeAheadBox);
- tagInput.parent().append(addButton);
+ tagInput.parent().append(typeAheadContainer);
// Add a list of popular tags to be added
--
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.