This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/Common.js b/js/Common.js | |
index 6fa4589..a882280 100644 | |
--- a/js/Common.js | |
+++ b/js/Common.js | |
@@ -409,6 +409,15 @@ if (!CRM.vars) CRM.vars = {}; | |
if (settings.ajax) { | |
$el.addClass('crm-ajax-select'); | |
} | |
+ | |
+ if (settings.placeholder || settings.placeholderOption || $el.data('placeholder') || $el.a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
+--------------------------------------------------------------------+ | |
| CiviCRM version 4.6 | | |
+--------------------------------------------------------------------+ | |
| Copyright CiviCRM LLC (c) 2004-2015 | | |
+--------------------------------------------------------------------+ | |
| This file is a part of CiviCRM. | | |
| | | |
| CiviCRM is free software; you can copy, modify, and distribute it | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Currently going to latest.civicrm.org/stable.php outputs: | |
4.5.4 | |
// Proposed new output | |
{ | |
"4.2": { | |
"status": "lts", // one of "lts", "eol", "stable" or "testing" | |
"releases": [ | |
{"version": "4.2.alpha1", "date": "2012-06-08"}, | |
{"version": "4.2.alpha2", "date": "2012-06-20"}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Currently going to latest.civicrm.org/stable.php outputs: | |
4.5.2 | |
// Proposed new output: | |
{ | |
"stable": {"security": null, "latest": "4.5.2"}, | |
"lts": {"security": "4.4.7", "latest": "4.4.8"}, | |
"unstable": null, // we don't have any beta releases out currently, is this what that should look like? | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A closure is a function that provides scope for your variables | |
// and can provide an abbreviated alias of globals. | |
// In this case we are importing Civi's copy of jQuery and lo-dash. | |
// @see http://wiki.civicrm.org/confluence/display/CRMDOC/Javascript+Reference | |
function something($, _) { | |
// Code goes here | |
} | |
// Run the function | |
something(CRM.$, CRM._); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cj(function($) { | |
$('#crm-container').on('click', '.crm-contact-activity-links a.action-item-first', function(e) { | |
var url = $(this).attr('href'); | |
$('<div class="crm-container" />').dialog({ | |
title: 'View Activity', | |
open: function() { | |
$(this).load(url + '&snippet=1'); | |
} | |
}); | |
e.preventDefault(); |
NewerOlder