mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 16:46:50 +02:00
Basic per-item search engine robots handling added to News and Pages.
This commit is contained in:
@@ -88,7 +88,7 @@
|
||||
$(element).prop('selected', 'selected');
|
||||
}
|
||||
|
||||
$('ul', this.container).append('<li><a href="javascript:void(0);" style="padding:0;"><label style="margin:0;padding:3px 20px 3px 20px;width:100%;height:100%;cursor:pointer;"><input style="margin-bottom:5px;" type="checkbox" value="' + $(element).val() + '" /> ' + $(element).text() + '</label</a></li>');
|
||||
$('ul', this.container).append('<li><a href="javascript:void(0);" style="padding:0;" ><label data-tooltip-position="right" title="' + $(element).data('title') + '" style="margin:0;padding:3px 20px 3px 20px;width:100%;height:100%;cursor:pointer;"><input style="margin-bottom:5px;" type="checkbox" value="' + $(element).val() + '" /> ' + $(element).text() + '</label</a></li>');
|
||||
|
||||
var selected = $(element).prop('selected') || false;
|
||||
var checkbox = $('ul li input[value="' + $(element).val() + '"]', this.container);
|
||||
|
@@ -95,13 +95,21 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
placement = 'top';
|
||||
}
|
||||
|
||||
// custom position defined in field-help container class
|
||||
var custPlace = $fieldHelp.attr('data-placement'); // ie top|left|bottom|right
|
||||
|
||||
if(custPlace !== undefined)
|
||||
{
|
||||
placement = custPlace;
|
||||
}
|
||||
|
||||
// custom position defined in selector tag.
|
||||
var pos = $(this).attr('data-tooltip-position');
|
||||
if(pos !== undefined)
|
||||
{
|
||||
placement = pos;
|
||||
}
|
||||
|
||||
|
||||
$fieldHelp.hide();
|
||||
|
||||
$this.tooltip({
|
||||
@@ -568,6 +576,11 @@ $(document).ready(function()
|
||||
$(this).multiselect({ buttonClass: 'btn btn-default'} );
|
||||
}
|
||||
|
||||
|
||||
/* optionLabel: function(element) {
|
||||
return $(element).html() + '(' + $(element).val() + ')';
|
||||
}*/
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user