Skip to content

Commit

Permalink
Fixed issue #07725: jquery.selectboxes is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Apr 3, 2013
1 parent 362d8e9 commit d68292d
Show file tree
Hide file tree
Showing 8 changed files with 656 additions and 1 deletion.
9 changes: 9 additions & 0 deletions application/config/third_party.php
Expand Up @@ -137,6 +137,15 @@
'depends' => array(
'jquery',
)
),
'jquery-selectboxes' => array(
'baseUrl' => 'third_party/jquery-selectboxes/selectboxes',
'js' => array(
'jquery.selectboxes.js'
),
'depends' => array(
'jquery'
)
)


Expand Down
1 change: 0 additions & 1 deletion application/controllers/admin/globalsettings.php
Expand Up @@ -263,7 +263,6 @@ private function _checkSettings()
*/
protected function _renderWrappedTemplate($sAction = '', $aViewUrls = array(), $aData = array())
{
App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts') . "jquery/jquery.selectboxes.min.js");
App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('adminscripts') . "globalsettings.js");

parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
Expand Down
4 changes: 4 additions & 0 deletions application/views/admin/globalSettings_view.php
@@ -1,3 +1,7 @@
<?php
App()->getClientScript()->registerPackage('jquery-selectboxes');

?>
<script type="text/javascript">
var msgAtLeastOneLanguageNeeded = '<?php $clang->eT("You must set at last one available language.",'js'); ?>';
</script>
Expand Down
13 changes: 13 additions & 0 deletions third_party/jquery-selectboxes/README
@@ -0,0 +1,13 @@
Plugins for jQuery:

checkbox manipulation - working with checkboxes
dialogIframe - Opens links in an iframe in a jQuery UI Dialog box
dialogImage - Opens images in a jQuery UI Dialog box
fix Q tags - wrap q tags with proper quotes in Internet Explorer
focus fields - add an outline and background to text inputs when they are given focus
jQIR - replace text with images
newsticker - a news ticker for sequentially showing each item in a list
numeric - allow only numbers to be typed into a text box
preload images - preload any images that you may use in the future (e.g. for image rollovers)
select box manipulation - add/remove options in select boxes as well as sort them
time picker - display a list of times when you click on an input
49 changes: 49 additions & 0 deletions third_party/jquery-selectboxes/selectboxes/ChangeLog.txt
@@ -0,0 +1,49 @@
Select box manipulation ChangeLog

8 February 2009
Sorting no longer has the wrong options selected. selectOptions now takes an array. New selectedTexts (like selectedValues)

6 October 2008
ajaxAddOption documentation (in source) update. removeOption can take an array. new selectedOptions
minified version

17 June 2008
available under a MIT/GPL dual license. Callback function for containsOption is passed on the index of the found option

14 December 2007
removing options by index now works again

12 September 2007
new selectedValues plugin - returns values of selected options as an array

27 July 2007
cache (created when adding an option) is removed when removing options
if you supply a second parameter to removeOption and it is true, then the option will only be removed
if it is selected as well

15 June 2007
addOption is now much faster when adding many options (no longer causing an 'unresponsive script' dialog box)

22 May 2007
Packed version available using Dean Edwards' Packer: http://dean.edwards.name/packer/

5 April 2007
ajaxAddOption takes two additional arguments - fn (function to call when after the options have been added)
and args (arguments to pass on to the function)
New containsOption plugin, for checking if an option is within the select list

20 February 2007
removeOption can now take a regular expression
(useful if you want to remove multiple options in one go)

13 February 2007
addOption can also replace options that already exist with the same value
selectOptions can clear previously selected options
new copyOptions now allows you to copy options from one select to another

2 February 2007
Fix for Safari 2.0 - couldn't add option

5 December 2006
Select option(s) by value with 'selectOptions'
Based on code by Mathias Bank (http://www.mathias-bank.de)

0 comments on commit d68292d

Please sign in to comment.