mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11103] Declare $ for jQuery, check for instance of, newlines at eof
PHPBB3-11103
This commit is contained in:
parent
f96dac3352
commit
2c06c2bd36
4 changed files with 8 additions and 4 deletions
|
@ -518,7 +518,7 @@ class phpbb_notification_manager
|
|||
|
||||
$class = $this->get_item_type_class($class_name);
|
||||
|
||||
if ($class->is_available() && method_exists($class_name, 'get_item_type'))
|
||||
if ($class instanceof phpbb_notification_type_interface && $class->is_available() && method_exists($class_name, 'get_item_type'))
|
||||
{
|
||||
$options = array_merge(array(
|
||||
'id' => $class_name::get_item_type(),
|
||||
|
@ -556,7 +556,7 @@ class phpbb_notification_manager
|
|||
|
||||
$method = $this->get_method_class($class_name);
|
||||
|
||||
if ($method->is_available())
|
||||
if ($method instanceof phpbb_notification_method_interface && $method->is_available())
|
||||
{
|
||||
$subscription_methods[] = $method_name;
|
||||
}
|
||||
|
|
|
@ -736,4 +736,4 @@ p.rules a {
|
|||
|
||||
.notification_list ul.topiclist dt {
|
||||
width: 88%;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
<!-- IF S_NOTIFICATIONS_DISPLAY -->
|
||||
(function($) { // Avoid conflicts with other libraries
|
||||
|
||||
$(document).click(function(e) {
|
||||
var target = e.target;
|
||||
|
||||
|
@ -22,6 +24,8 @@ $(document).click(function(e) {
|
|||
$('#notification_list').hide();
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery); // Avoid conflicts with other libraries
|
||||
<!-- ENDIF -->
|
||||
// ]]>
|
||||
</script>
|
||||
|
|
|
@ -1182,4 +1182,4 @@ a.imageset {
|
|||
|
||||
#notification_list .footer > a {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue