Revision: 2335
http://mrbs.svn.sourceforge.net/mrbs/?rev=2335&view=rev
Author: cimorrison
Date: 2012-07-17 08:10:59 +0000 (Tue, 17 Jul 2012)
Log Message:
-----------
Disabled Ajax conflict checking on the edit entry form if the user hasn't
logged in.
Modified Paths:
--------------
mrbs/trunk/web/js/edit_entry.js.php
Modified: mrbs/trunk/web/js/edit_entry.js.php
===================================================================
--- mrbs/trunk/web/js/edit_entry.js.php 2012-07-13 16:19:06 UTC (rev 2334)
+++ mrbs/trunk/web/js/edit_entry.js.php 2012-07-17 08:10:59 UTC (rev 2335)
@@ -82,7 +82,11 @@
window.setTimeout(function() {
var params = {'ajax': 1}; <?php // This is an Ajax request ?>
var form = $('form#main');
- if (form.data('submit'))
+ <?php
+ // Don't do anything if (a) the form doesn't exist (which it won't if
the user
+ // hasn't logged in) or (b) if the submit button has been pressed
+ ?>
+ if ((form.length == 0) || form.data('submit'))
{
return;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits