[editable] [minor] made item, item_group pages editable

This commit is contained in:
Rushabh Mehta
2013-10-18 12:16:56 +05:30
parent 6294452435
commit 46eaa55f06
2 changed files with 17 additions and 1 deletions

View File

@@ -3,6 +3,14 @@
{% block javascript %}
<script>
{% include "app/stock/doctype/item/templates/includes/product_page.js" %}
$(function() {
if(window.logged_in && getCookie("system_user")==="yes") {
wn.require("lib/js/wn/website/editable.js");
wn.make_editable($('[itemprop="description"]'), "Item", "{{ name }}", "web_long_description");
}
})
</script>
{% endblock %}