Koha/koha-tmpl/intranet-tmpl/prog/en/includes/quotes-upload-toolbar.inc
Chris Nighswonger 0a9f8f86aa Bug 7977: Further UI work on the QOTD uploader
This patch addresses another of oleonard's points as well as
some general cleanup:

--Adds instructions to each stage of the uploader
--Consolidates quote tool css into quotes.css

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
2012-05-24 14:14:15 +02:00

41 lines
1.1 KiB
HTML

<script type="text/javascript">
var oSaveButton = '';
var oDeleteButton = '';
//<![CDATA[
// prepare DOM for YUI Toolbar
$(document).ready(function() {
$("#save_quotes").empty();
$("#delete_quote").empty();
yuiToolbar();
});
// YUI Toolbar Functions
function yuiGetData() {
fnGetData(document.getElementById('quotes_editor'));
}
function yuiToolbar() {
oSaveButton = new YAHOO.widget.Button({
type: "button",
label: _("Save quotes"),
name: "save",
container: "save_quotes",
});
oDeleteButton = new YAHOO.widget.Button({
type: "button",
label: _("Delete quote(s)"),
name: "delete",
container: "delete_quote",
});
}
//]]>
</script>
<div id="toolbar" style="visibility: hidden; position: absolute">
<ul class="toolbar">
<li id="save_quotes"><a id="save" href="#">Save quotes</a></li>
<li id="delete_quote"><a id="delete" href="#">Delete quote(s)</a></li>
</ul>
</div>