Merge pull request #740 from kinglozzer/3.1

FIX 'Add new' page button missing ParentID
This commit is contained in:
Ingo Schommer 2013-05-17 04:17:03 -07:00
commit cf81c32dd8

View File

@ -99,8 +99,9 @@
}
var data = {selector: this.data('targetPanel'),pjax: this.data('pjax')}, url;
if(parentID) {
url = $.path.addSearchParams(ss.i18n.sprintf(this.data('urlAddpage'), parentId), this.data('extraParams'));
if(parentId) {
extraParams = this.data('extraParams') ? this.data('extraParams') : '';
url = $.path.addSearchParams(ss.i18n.sprintf(this.data('urlAddpage'), parentId), extraParams);
} else {
url = this.attr('href');
}