mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 19:03:14 +01:00
Implement to select own_src radio-button option automatically when upload a file in resources edit popup
This commit is contained in:
parent
77579f364f
commit
76f84c4378
@ -112,4 +112,17 @@ app.classes.resources = AppJS.extend(
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set the picture_src to own_src by uploding own file
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
select_picture_src: function ()
|
||||||
|
{
|
||||||
|
var rBtn = this.et2.getWidgetById('picture_src');
|
||||||
|
if (typeof rBtn != 'undefined')
|
||||||
|
{
|
||||||
|
rBtn.set_value('own_src');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
});
|
});
|
@ -61,7 +61,7 @@
|
|||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<description/>
|
<description/>
|
||||||
<file id="own_file" class="resources_pictureFile et2_fullWidth"/>
|
<file id="own_file" class="resources_pictureFile et2_fullWidth" onchange="app.resources.select_picture_src"/>
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
|
Loading…
Reference in New Issue
Block a user