Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Pull request to allow usage in frontend. #6

Merged
merged 5 commits into from

2 participants

@Philippe-Mange

Hi CraftyShadow,

I just managed to add your plugin in the frontend. All i needed to do was checking for two admin-elements in the JS file for it to work flowlessly (see changes).
I did the changes online on Github to avoid the NetBeans whitespaces line-indenting.

Kind Regards
Philippe

PS: I will try to write a tutorial in the Diem-community to explain how to add your plugin in the front-app.

@VanTanev VanTanev merged commit db3d811 into VanTanev:master
@VanTanev
Owner

Thank you for the contribution!

Have a great day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 26, 2012
  1. Revert "Add check for admin-elements to allow frontend usage." - due …

    Philippe authored
    …to formating changes by NetBeans
    
    This reverts commit 734f55c.
  2. Revert "Add check for admin-elements to allow frontend usage." - due …

    Philippe authored
    …to Netbeans formating
    
    This reverts commit c15ae80.
  3. @Philippe-Mange
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 2 deletions.
  1. +6 −2 web/js/sfWidgetFormDmUploadify.js
View
8 web/js/sfWidgetFormDmUploadify.js
@@ -40,8 +40,12 @@
'auto' : false,
'multi' : true,
'onAllComplete' : function(event, queueID, fileObj, response, data) {
- $uploadified.closest('div.ui-dialog-content').dialog('close');
- $('#dm_admin_content').block();
+ if ($uploadified.closest('div.ui-dialog-content').length){
+ $uploadified.closest('div.ui-dialog-content').dialog('close');
+ }
+ if ($('#dm_admin_content').length){
+ $('#dm_admin_content').block();
+ }
window.location.reload();
},
'onProgress' : function(event, queueID, fileObj, data) {
Something went wrong with that request. Please try again.