diff options
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/edit_forum.html')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/edit_forum.html | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/edit_forum.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/edit_forum.html index 93c1bc8..2ba3cfe 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/edit_forum.html +++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/edit_forum.html @@ -44,6 +44,20 @@ */ </style> + + +<script language="javascript" > + +function cancel(){ + + if(confirm("Are you sure you want to cancel edit?")) + { + history.go(-1); + } +} + +</script> + <!-- <script type="text/javascript"> // $(document).ready(function(){ @@ -109,7 +123,8 @@ <!-- Final Create forum button --> <div class="large-8 columns"> <!-- <input type="submit" id="forum" value="Edit Forum" style="display:none"> --> - <input type="submit" id="forum" class="button expand" value="Save forum"> + <input type="submit" id="forum" class="button tiny" value="Save forum"> + <input type="button" id="cancel_edit" class="button tiny" value="Cancel" onclick="cancel()"> </div> </div> @@ -276,7 +291,7 @@ var name = $("#forum_name").val().trim().toLowerCase(); var nodes = {{nodes_list|safe}} - if (name != old_forum_name && name != "") + if (name == old_forum_name && name != "") { if (nodes.indexOf(name) != -1) { |