Mwjames has uploaded a new change for review.

Change subject: Enable gallery images to be redirected to another target
......................................................................

Enable gallery images to be redirected to another target

## Description
+1 Introducing a new paramter, which allows to use a property pointing
to another location for gallery thumbs when it this particular image
is clicked ( ext.srf.gallery.redirect.js will check which page is
marked to be redirected and re-read the corresponding url via ajax)

+2 This change fixes a nasty bug which occured while the
parser was accessed on Special:Ask (Fatal error: Call to a
member function  addImage() on a non-object in ... \Parser.php
on line 3581)

## jshint checked
- ext.srf.gallery.overlay.js
- ext.srf.gallery.redirect.js

## Patchsets
+1 commit parser fix, redirects

Change-Id: I7c49a644eddf8e0240f37a0497750083e79670b0
---
M SRF_Resources.php
M formats/gallery/SRF_Gallery.php
M formats/gallery/resources/ext.srf.gallery.overlay.css
M formats/gallery/resources/ext.srf.gallery.overlay.js
A formats/gallery/resources/ext.srf.gallery.redirect.css
A formats/gallery/resources/ext.srf.gallery.redirect.js
A formats/gallery/resources/images/gallery-redirect.png
7 files changed, 223 insertions(+), 45 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticResultFormats 
refs/changes/00/17700/1
--
To view, visit https://gerrit.wikimedia.org/r/17700
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7c49a644eddf8e0240f37a0497750083e79670b0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticResultFormats
Gerrit-Branch: master
Gerrit-Owner: Mwjames <jamesin.hongkon...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to