mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:56 +01:00
show hand cursor (et2_clickable class), if expose is available
This commit is contained in:
parent
e2aa6dce73
commit
03b6b7a871
@ -1,3 +1,15 @@
|
|||||||
|
/**
|
||||||
|
* EGroupware eTemplate2 - JS object implementing expose view of media and a gallery view
|
||||||
|
*
|
||||||
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||||
|
* @package etemplate
|
||||||
|
* @subpackage api
|
||||||
|
* @link http://www.egroupware.org
|
||||||
|
* @author Hadi Nategh <hn[at]stylite.de>
|
||||||
|
* @copyright Stylite AG
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
/*egw:uses
|
/*egw:uses
|
||||||
jquery.jquery;
|
jquery.jquery;
|
||||||
/phpgwapi/js/jquery/blueimp/js/jquery.blueimp-gallery.min.js;
|
/phpgwapi/js/jquery/blueimp/js/jquery.blueimp-gallery.min.js;
|
||||||
@ -6,14 +18,13 @@
|
|||||||
/**
|
/**
|
||||||
* Interface all exposed widget must support in order to getMedia for the blueimp Gallery.
|
* Interface all exposed widget must support in order to getMedia for the blueimp Gallery.
|
||||||
*/
|
*/
|
||||||
var et2_IExposable = new Interface({
|
var et2_IExposable = new Interface(
|
||||||
|
{
|
||||||
/**
|
/**
|
||||||
* get media an array of media objects to pass to blueimp Gallery
|
* get media an array of media objects to pass to blueimp Gallery
|
||||||
* @param {array} _attrs
|
* @param {array} _attrs
|
||||||
*/
|
*/
|
||||||
getMedia: function(_attrs) {},
|
getMedia: function(_attrs) {}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -24,12 +35,13 @@ var et2_IExposable = new Interface({
|
|||||||
*/
|
*/
|
||||||
function expose (widget)
|
function expose (widget)
|
||||||
{
|
{
|
||||||
return widget.extend([et2_IExposable],{
|
return widget.extend([et2_IExposable],
|
||||||
|
{
|
||||||
/**
|
/**
|
||||||
* Initialize the expose media gallery
|
* Initialize the expose media gallery
|
||||||
*/
|
*/
|
||||||
init: function() {
|
init: function()
|
||||||
|
{
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
|
|
||||||
this.expose_options = {
|
this.expose_options = {
|
||||||
@ -202,7 +214,7 @@ function expose (widget)
|
|||||||
{
|
{
|
||||||
jQuery(this.node).on('click', function(){
|
jQuery(this.node).on('click', function(){
|
||||||
self._init_blueimp_gallery(_value);
|
self._init_blueimp_gallery(_value);
|
||||||
});
|
}).addClass('et2_clickable');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -219,7 +231,6 @@ function expose (widget)
|
|||||||
/**
|
/**
|
||||||
* Trigger on slide left/right
|
* Trigger on slide left/right
|
||||||
* @param {type} event
|
* @param {type} event
|
||||||
* @param {type} _callback
|
|
||||||
*/
|
*/
|
||||||
expose_onslide: function (event){},
|
expose_onslide: function (event){},
|
||||||
expose_onslideend: function (event){},
|
expose_onslideend: function (event){},
|
||||||
|
Loading…
Reference in New Issue
Block a user