Commit 49c350ca authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

crib-enable: Add getScope to the interface

parent 96f49432
......@@ -7,6 +7,9 @@
<h1>Crib Enable Interface</h1>
<h3>Interface Needed to edit with CribJS</h3>
<dl>
<dt>getScope</dt>
<dd>Return url in string format. get the Scope covered by the gadget</dd>
<dl></dl>
<dt>get</dt>
<dd>Return a data url. Cannot return a blob as the data is transmitted through an iFrame</dd>
<dl>
......
......@@ -95,6 +95,15 @@
}
})
/*
* get the Scope covered by the gadget
*
* @return {url} Return the scope covered by this gadget
*/
.declareMethod('getScope', function () {
return this.state_parameter_dict.default_document;
})
/**
* get Return a data url. Cannot return a blob as the data
* is transmitted through an iFrame
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment