|
|
@ -3,6 +3,7 @@
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
/* global Bloodhound, language, Modernizr, tinymce */
|
|
|
|
/* global Bloodhound, language, Modernizr, tinymce */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($("#description").length) {
|
|
|
|
tinymce.init({
|
|
|
|
tinymce.init({
|
|
|
|
selector: "#description",
|
|
|
|
selector: "#description",
|
|
|
|
branding: false,
|
|
|
|
branding: false,
|
|
|
@ -10,6 +11,7 @@ tinymce.init({
|
|
|
|
language
|
|
|
|
language
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!Modernizr.inputtypes.date) {
|
|
|
|
if (!Modernizr.inputtypes.date) {
|
|
|
|
$("#pubdate").datepicker({
|
|
|
|
$("#pubdate").datepicker({
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
@ -26,7 +28,7 @@ if (!Modernizr.inputtypes.date) {
|
|
|
|
.removeClass("hidden");
|
|
|
|
.removeClass("hidden");
|
|
|
|
}).trigger("change");
|
|
|
|
}).trigger("change");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
Takes a prefix, query typeahead callback, Bloodhound typeahead adapter
|
|
|
|
Takes a prefix, query typeahead callback, Bloodhound typeahead adapter
|
|
|
|
and returns the completions it gets from the bloodhound engine prefixed.
|
|
|
|
and returns the completions it gets from the bloodhound engine prefixed.
|
|
|
|