Title: [opsview] [9521] Added 'required' class to comment, removed redundant old _javascript_ that checks this.
Revision
9521
Author
pknight
Date
2012-07-10 14:49:05 +0100 (Tue, 10 Jul 2012)

Log Message

Added 'required' class to comment, removed redundant old _javascript_ that checks this.

Modified Paths

Modified: trunk/opsview-web/root/status/set
===================================================================
--- trunk/opsview-web/root/status/set	2012-07-10 13:46:03 UTC (rev 9520)
+++ trunk/opsview-web/root/status/set	2012-07-10 13:49:05 UTC (rev 9521)
@@ -35,7 +35,7 @@
             [% c.loc("ui.state.service.label.comment") | html %]:
         </a>
     </label>
-    <input type="text" id="comment" name="comment" size="50" value="[% c.req.param("comment") | html %]" />
+    <input class="required" type="text" id="comment" name="comment" size="50" value="[% c.req.param("comment") | html %]" />
 </div>
 
 <div class="field formButtons">
@@ -134,7 +134,3 @@
 
 </form>
 </div>
-<br />[%# For IE6 %]
-<script type="text/_javascript_">
-Event.observe('main_form', 'submit', function(evt) { if ($('comment').value == "") { alert("[% c.loc("ui.set.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