mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-05 05:54:44 +00:00
Removed trailing spaces from wagtailadmin js files
This commit is contained in:
parent
115b5b3ae0
commit
2506293d4d
2 changed files with 14 additions and 14 deletions
|
|
@ -99,7 +99,7 @@ $(function(){
|
|||
|
||||
$(this).html(currentAlt);
|
||||
$(this).data('altstate', newAlt);
|
||||
$(this).toggleClass('icon-arrow-up icon-arrow-down')
|
||||
$(this).toggleClass('icon-arrow-up icon-arrow-down');
|
||||
$(this).parent().find('ul').toggle('fast');
|
||||
return false;
|
||||
});
|
||||
|
|
@ -122,15 +122,15 @@ $(function(){
|
|||
clearTimeout($.data(this, 'timer'));
|
||||
var wait = setTimeout(search, 200);
|
||||
$(this).data('timer', wait);
|
||||
});
|
||||
});
|
||||
|
||||
// auto focus on search box
|
||||
$(window.headerSearch.termInput).trigger('focus');
|
||||
$(window.headerSearch.termInput).trigger('focus');
|
||||
|
||||
function search () {
|
||||
var workingClasses = "working icon icon-spinner"
|
||||
var workingClasses = "working icon icon-spinner";
|
||||
|
||||
$(window.headerSearch.termInput).parent().addClass(workingClasses);
|
||||
$(window.headerSearch.termInput).parent().addClass(workingClasses);
|
||||
search_next_index++;
|
||||
var index = search_next_index;
|
||||
$.ajax({
|
||||
|
|
@ -144,9 +144,9 @@ $(function(){
|
|||
}
|
||||
},
|
||||
complete: function(){
|
||||
$(window.headerSearch.termInput).parent().removeClass(workingClasses);
|
||||
$(window.headerSearch.termInput).parent().removeClass(workingClasses);
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ function makeRichTextEditable(id) {
|
|||
plugins: {
|
||||
'halloformat': {},
|
||||
'halloheadings': {formatBlocks: ["p", "h2", "h3", "h4", "h5"]},
|
||||
'hallolists': {},
|
||||
'hallolists': {},
|
||||
'hallohr': {},
|
||||
'halloreundo': {},
|
||||
'hallowagtailimage': {},
|
||||
|
|
@ -55,7 +55,7 @@ function initDateChoosers(context) {
|
|||
$('input.friendly_date', context).datepicker({
|
||||
dateFormat: 'd M yy', constrainInput: false, /* showOn: 'button', */ firstDay: 1
|
||||
});
|
||||
|
||||
|
||||
if(window.overrideDateInputFormat && window.overrideDateInputFormat !='') {
|
||||
$('input.localized_date', context).datepicker({
|
||||
dateFormat: window.overrideDateInputFormat, constrainInput: false, /* showOn: 'button', */ firstDay: 1
|
||||
|
|
@ -65,7 +65,7 @@ function initDateChoosers(context) {
|
|||
constrainInput: false, /* showOn: 'button', */ firstDay: 1
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
function initFriendlyDateChooser(id) {
|
||||
$('#' + id).datepicker({
|
||||
|
|
@ -82,7 +82,7 @@ function initLocalizedDateChooser(id) {
|
|||
constrainInput: false, /* showOn: 'button', */ firstDay: 1
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function initTimeChoosers(context) {
|
||||
|
|
@ -134,7 +134,7 @@ function InlinePanel(opts) {
|
|||
$('#' + childId).slideUp(function() {
|
||||
self.updateMoveButtonDisabledStates();
|
||||
self.setHasContent();
|
||||
});
|
||||
});
|
||||
});
|
||||
if (opts.canOrder) {
|
||||
$('#' + prefix + '-move-up').click(function() {
|
||||
|
|
@ -231,7 +231,7 @@ function InlinePanel(opts) {
|
|||
$(fixPrefix('#id_' + opts.emptyChildFormPrefix + '-ORDER')).val(formCount);
|
||||
}
|
||||
self.updateMoveButtonDisabledStates();
|
||||
|
||||
|
||||
opts.onAdd(fixPrefix);
|
||||
}
|
||||
});
|
||||
|
|
@ -283,7 +283,7 @@ function initErrorDetection(){
|
|||
// now identify them on each tab
|
||||
for(var index in errorSections) {
|
||||
$('.tab-nav a[href=#'+ index +']').addClass('errors').attr('data-count', errorSections[index]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$(function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue