// History
// 2010/07/22 - Mindtouch guys changed the Javascript behaviour (naming) on Mindtouch v10, changed the code to suport it.
var TagName = $0;
var TagId = @id;
<a id=('link_add_tag'..TagId) newTag=(TagName)>TagName</a><span id=("link_add_tag_done"..TagId) style='display:none;color:green'>"Done"</span>
<span id=("link_add_tag_loading"..TagId) style="display:none;margin:auto;width:40px;height:40px;background-repeat: no-repeat; align: left; background-image:url('/skins/common/icons/anim-wait-circle.gif');">
;
;
;
</span>
<script type="text/jem">"
function LinkAddTagControls"..TagId.."() {
Deki.$('#link_add_tag"..TagId.."').bind('click', function() {
var error;
$('#link_add_tag"..TagId.."').hide();
$('#link_add_tag_loading"..TagId.."').show();
// -- Mindtouch v10 Previous: Deki.Tags.Save(Deki.$(this).attr('newTag'),null,callbackAddTag"..TagId..");
Deki.Plugin.PageTags.Save([ Deki.$(this).attr('newTag') ],callbackAddTag"..TagId..",error);
return false;
});
}
LinkAddTagControls"..TagId.."();
function callbackAddTag"..TagId.."(obj) {
// -- Mindtouch v10 Previous: Deki.Tags.RefreshView();
Deki.Plugin.PageTags.Refresh();
$('#link_add_tag_loading"..TagId.."').hide();
$('#link_add_tag_done"..TagId.."').show();
}
"</script>
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by