mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +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
|
||||
jquery.jquery;
|
||||
/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.
|
||||
*/
|
||||
var et2_IExposable = new Interface({
|
||||
|
||||
var et2_IExposable = new Interface(
|
||||
{
|
||||
/**
|
||||
* get media an array of media objects to pass to blueimp Gallery
|
||||
* @param {array} _attrs
|
||||
*/
|
||||
getMedia: function(_attrs) {},
|
||||
|
||||
getMedia: function(_attrs) {}
|
||||
});
|
||||
|
||||
/**
|
||||
@ -24,12 +35,13 @@ var et2_IExposable = new Interface({
|
||||
*/
|
||||
function expose (widget)
|
||||
{
|
||||
return widget.extend([et2_IExposable],{
|
||||
|
||||
return widget.extend([et2_IExposable],
|
||||
{
|
||||
/**
|
||||
* Initialize the expose media gallery
|
||||
*/
|
||||
init: function() {
|
||||
init: function()
|
||||
{
|
||||
this._super.apply(this, arguments);
|
||||
|
||||
this.expose_options = {
|
||||
@ -202,7 +214,7 @@ function expose (widget)
|
||||
{
|
||||
jQuery(this.node).on('click', function(){
|
||||
self._init_blueimp_gallery(_value);
|
||||
});
|
||||
}).addClass('et2_clickable');
|
||||
}
|
||||
},
|
||||
|
||||
@ -219,7 +231,6 @@ function expose (widget)
|
||||
/**
|
||||
* Trigger on slide left/right
|
||||
* @param {type} event
|
||||
* @param {type} _callback
|
||||
*/
|
||||
expose_onslide: function (event){},
|
||||
expose_onslideend: function (event){},
|
||||
|
Loading…
Reference in New Issue
Block a user