Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixes manymanysortable.js loading and executing before livequery has loaded
  • Loading branch information
christopherdarling committed Jul 25, 2012
1 parent 3742bc1 commit f8903aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/MultipleFileAttachmentField.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class MultipleFileAttachmentField extends KickAssetField {
*/
public function FieldHolder() {
if ($this->getForm()->getRecord()->hasExtension('ManyManySortable')){
Requirements::javascript(THIRDPARTY_DIR.'/jquery/jquery.js');
Requirements::javascript(THIRDPARTY_DIR.'/jquery-livequery/jquery.livequery.js');
Requirements::javascript(SAPPHIRE_DIR ."/thirdparty/jquery-ui/jquery-ui-1.8rc3.custom.js");
Requirements::javascript('kickassets/javascript/manymanysortable.js');
}
Expand Down

0 comments on commit f8903aa

Please sign in to comment.