This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #410 from SumOfUs/development
Champaign 1.0.1
- Loading branch information
Showing
103 changed files
with
1,141 additions
and
676 deletions.
There are no files selected for viewing
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
(function(){ | ||
var configureWysiwyg = function() { | ||
var $editor = $('#summernote'); | ||
if($editor.length === 0){ | ||
return false; | ||
} | ||
|
||
$editor.summernote({ | ||
toolbar: [ | ||
['style', ['bold', 'italic', 'underline', 'clear']], | ||
['font', ['fontname', 'fontsize']], | ||
['para', ['paragraph']], | ||
['color', ['color']], | ||
['insert', ['link', 'picture', 'video']], | ||
['view', ['fullscreen', 'codeview', 'help']] | ||
], | ||
height: 280, | ||
fontSizes: ['8', '10', '11', '12', '14', '16', '20', '24', '36', '72'], | ||
}); | ||
$contentField = $('#page_content'); | ||
|
||
$editor.summernote('fontSize', '16'); // default | ||
$editor.summernote('code', $contentField.val()); | ||
|
||
updateContentBeforeSave = function(){ | ||
var content = $editor.summernote('code'); | ||
$contentField.val(content); | ||
}; | ||
|
||
$.subscribe("wysiwyg:submit", updateContentBeforeSave); | ||
} | ||
|
||
$.subscribe("wysiwyg:setup", configureWysiwyg); | ||
}()); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
(function(){ | ||
|
||
var searchConfig = function() { | ||
|
||
$('.page-filter__reset').click( function() { | ||
$('select.selectize-container').map(function(index, item){ | ||
item.selectize.clear(); | ||
}); | ||
$(this).closest('form').find('.form-control').map(function(index, item){ | ||
$(item).val(""); | ||
}); | ||
}); | ||
|
||
$('#pages-table').DataTable({ | ||
/* Disable initial sort */ | ||
"aaSorting": [] | ||
}); | ||
} | ||
|
||
$.subscribe("search:load", searchConfig); | ||
}()); |
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
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
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
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
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
Oops, something went wrong.