Dialog & select2 improvements
[civicrm-core.git] / templates / CRM / Admin / Page / Tag.tpl
index 9dd1066e7f5aac4779b30aacc4652b1f92a5df59..f2ea634f9c43ced8f0672e2dfb57feba1c466291 100644 (file)
@@ -1,8 +1,8 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
 
 {literal}
 <script type="text/javascript">
-cj(function($) {
+CRM.$(function($) {
   var tag;
   $('.merge_tag').click(function(e) {
     tag = $(this).crmEditableEntity();
@@ -117,7 +117,7 @@ cj(function($) {
       open: function() {
         var dialog = this;
         $('input[name=select_merge_tag]', dialog)
-          .select2({
+          .crmSelect2({
             placeholder: {/literal}'{ts escape="js"}- select tag -{/ts}'{literal},
             minimumInputLength: 1,
             ajax: {