Title: [opsview] [9563] Now using the same missing comment pop-up as the mass acknowledge page.
Revision
9563
Author
pknight
Date
2012-07-13 14:34:40 +0100 (Fri, 13 Jul 2012)

Log Message

Now using the same missing comment pop-up as the mass acknowledge page.

Modified Paths

Modified: trunk/opsview-web/root/status/set
===================================================================
--- trunk/opsview-web/root/status/set	2012-07-13 13:30:17 UTC (rev 9562)
+++ trunk/opsview-web/root/status/set	2012-07-13 13:34:40 UTC (rev 9563)
@@ -35,7 +35,7 @@
             [% c.loc("ui.state.service.label.comment") | html %]:
         </a>
     </label>
-    <input class="required" type="text" id="comment" name="comment" size="50" value="[% c.req.param("comment") | html %]" />
+    <input type="text" id="comment" name="comment" size="50" value="[% c.req.param("comment") | html %]" />
 </div>
 
 <div class="field">
@@ -139,3 +139,6 @@
 
 </form>
 </div>
+<script type="text/_javascript_">
+Event.observe('main_form', 'submit', function(evt) { if ($('comment').value == "") { alert("[% c.loc("ui.acknowledgements.message.missingComments") | escape_js_string %]"); Event.stop(evt) } }, false );
+</script>

_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins

Reply via email to