r252679 - in collective.smartkeywordmanager/trunk: collective/smartkeywordmanager collective/smartkeywordmanager/resources docs

"Tom Gross" <svn-changes-z4DKO/[email protected]> Mon, 4 Nov 2013 19:41:50 +0000 (UTC)
Newsgroups gmane.comp.web.zope.plone.collective.cvs
Message-ID <[email protected]>
Author: tom_gross
Date: Mon Nov  4 19:41:49 2013
New Revision: 252679

Added:
   collective.smartkeywordmanager/trunk/collective/smartkeywordmanager/resources/select2.png   (contents, props changed)
Modified:
   collective.smartkeywordmanager/trunk/collective/smartkeywordmanager/resources/select2.css
   collective.smartkeywordmanager/trunk/collective/smartkeywordmanager/smart_keyword_edit_form.pt
   collective.smartkeywordmanager/trunk/collective/smartkeywordmanager/views.py
   collective.smartkeywordmanager/trunk/docs/HISTORY.txt
Log:
added select2 image & added some space to select2 widgets


Modified: collective.smartkeywordmanager/trunk/collective/smartkeywordmanager/resources/select2.css
==============================================================================
--- collective.smartkeywordmanager/trunk/collective/smartkeywordmanager/resources/select2.css	(original)
+++ collective.smartkeywordmanager/trunk/collective/smartkeywordmanager/resources/select2.css	Mon Nov  4 19:41:49 2013
@@ -95,7 +95,7 @@
     text-decoration: none;
 
     border: 0;
-    background: url('select2.png') right top no-repeat;
+    background: url('++resource++collective.smartkeywordmanager/select2.png') right top no-repeat;
     cursor: pointer;
     outline: 0;
 }
@@ -199,7 +199,7 @@
     display: block;
     width: 100%;
     height: 100%;
-    background: url('select2.png') no-repeat 0 1px;
+    background: url('++resource++collective.smartkeywordmanager/select2.png') no-repeat 0 1px;
 }
 
 .select2-search {
@@ -233,11 +233,11 @@
     -webkit-box-shadow: none;
             box-shadow: none;
 
-    background: #fff url('select2.png') no-repeat 100% -22px;
-    background: url('select2.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));
-    background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
-    background: url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
-    background: url('select2.png') no-repeat 100% -22px, linear-gradient(top, #fff 85%, #eee 99%);
+    background: #fff url('++resource++collective.smartkeywordmanager/select2.png') no-repeat 100% -22px;
+    background: url('++resource++collective.smartkeywordmanager/select2.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));
+    background: url('++resource++collective.smartkeywordmanager/select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
+    background: url('++resource++collective.smartkeywordmanager/select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
+    background: url('++resource++collective.smartkeywordmanager/select2.png') no-repeat 100% -22px, linear-gradient(top, #fff 85%, #eee 99%);
 }
 
 .select2-drop.select2-drop-above .select2-search input {
@@ -535,7 +535,7 @@
 
     font-size: 1px;
     outline: none;
-    background: url('select2.png') right top no-repeat;
+    background: url('++resource++collective.smartkeywordmanager/select2.png') right top no-repeat;
 }
 
 .select2-container-multi .select2-search-choice-close {

Added: collective.smartkeywordmanager/trunk/collective/smartkeywordmanager/resources/select2.png
==============================================================================
Binary file. No diff available.

Modified: collective.smartkeywordmanager/trunk/collective/smartkeywordmanager/smart_keyword_edit_form.pt
==============================================================================
--- collective.smartkeywordmanager/trunk/collective/smartkeywordmanager/smart_keyword_edit_form.pt	(original)
+++ collective.smartkeywordmanager/trunk/collective/smartkeywordmanager/smart_keyword_edit_form.pt	Mon Nov  4 19:41:49 2013
@@ -185,7 +185,7 @@
 
     <script type="text/javascript">
 jQuery(function($) {
-    $("#global_add").select2({tags:[]});
+    $("#global_add").select2({tags:[], width: "20em"});
 });
    </script>
      <tal:global_remove_js tal:replace="structure view/global_remove_js" />

Modified: collective.smartkeywordmanager/trunk/collective/smartkeywordmanager/views.py
==============================================================================
--- collective.smartkeywordmanager/trunk/collective/smartkeywordmanager/views.py	(original)
+++ collective.smartkeywordmanager/trunk/collective/smartkeywordmanager/views.py	Mon Nov  4 19:41:49 2013
@@ -8,7 +8,8 @@
 SELECT2 = """
     <script type="text/javascript">
 jQuery(function($) {
-    $("#%(cssid)s").select2({tags:[%(tags)s]});
+    $("#%(cssid)s").select2({tags:[%(tags)s],
+                             width:"20em"});
 
 });
    </script>

Modified: collective.smartkeywordmanager/trunk/docs/HISTORY.txt
==============================================================================
--- collective.smartkeywordmanager/trunk/docs/HISTORY.txt	(original)
+++ collective.smartkeywordmanager/trunk/docs/HISTORY.txt	Mon Nov  4 19:41:49 2013
@@ -8,7 +8,6 @@
 - Fixed UTF-8 encoding bug
 - Use select2 for presenting keywords
 
-
 0.6 (2011-01-04)
 ----------------
 

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk