Permalink
Browse files

MINOR More jQuery backwards compatible id attribute check in ModelAdm…

…in.js

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@115183 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 95e6516 commit 172ad1e418c506af90006c33d71745f7f8bf7e69 @chillu chillu committed Dec 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 javascript/ModelAdmin.js
View
@@ -62,7 +62,7 @@
*/
onsubmit: function(e) {
// Import forms are processed without ajax
- if(this.is('form[id^=Form_ImportForm])')) return true;
+ if(this.attr('id').match(/^Form_ImportForm/)) return true;
$('#contentPanel').closeRightPanel();

0 comments on commit 172ad1e

Please sign in to comment.