this is the bold code

else{
     *if ($debug) Debug.write("isUserAdmin",this.isUserAdmin);*
*      new lz.labelerrorPopup(canvas,{errorlabelid:1540});*
*      return;*
*    *}

On Wed, Sep 12, 2012 at 11:25 PM, [email protected] <
[email protected]> wrote:

> Sorry Baskar,
>
> the mailing list does not show any HTML / bold/colored code.
>
> Maybe you could copy it to http://pastebin.com/ and just share the link?
>
> Thanks
> Sebastian
>
> 2012/9/12 Baskar Rajendran <[email protected]>:
> > Seba
> >
> > Here's my c0de below and its in SWF8 i want the highlighted bold code to
> be
> > as error dialog if that satisfies that condition. yes it satisfies - i am
> > getting those debug messages but error dialog doesn't get popped.
> > It shows the upload window explorer.
> >
> >
> >
> > <method name="addFile">
> >     <![CDATA[
> >      if ($debug) Debug.write("addFile ::
> > ",this._selected,this.parentFolderId);
> >
> >      if (!canvas.isAllowedToDraw && !canvas.ismoderator) {
> >      new lz.labelerrorPopup(canvas,{errorlabelid:1462});
> >      return;
> >      }
> >
> >      var isOwner = 0;
> >      if (this.parentFolderId == -2) {
> >      isOwner = 1;
> >      } else {
> >      //Check if its a subfolder of a Owners Dir
> >      if (this._selected != null) {
> >      var checkForOwer = this._selected.checkForIsOwner();
> >      if ($debug) Debug.write("checkForOwer ::",checkForOwer);
> >      if (checkForOwer) {
> >      isOwner = 1;
> >      }
> >      }
> >      }
> >
> >      var isRestricted = 0;
> >      if(isOwner != 1)
> >      {
> >      if (this._selected.isRestricted) {
> >      isRestricted = 1;
> >      if ($debug) Debug.write("isRestricted",isRestricted);
> >      if ($debug) Debug.write("isUserAdmin",this.isUserAdmin);
> >      if(this.isUserAdmin)
> >      {
> >      // upload
> >      }
> >      else
> >      {
> >      *if ($debug) Debug.write("isUserAdmin",this.isUserAdmin);*
> > *     new lz.labelerrorPopup(canvas,{errorlabelid:1540});*
> > *     return;*
> >      }
> >      }
> >      }
> >
> >
> >
> >      if ($debug) Debug.write("addFile :: ",isOwner);
> >
> >         new lz.uploadWindowExplorer(canvas.main_content._content.inner,{
> >                             x:60,uploadmodule:canvas.uploadmoduleimg,
> >                             parentFolderId:this.parentFolderId,
> >                             isOwner:isOwner,
> >                             isRestricted:isRestricted,
> >                             fileExplorerRef:this,
> >                             isOnlyImage:true,
> >                             servletName:'file.upload'
> >                         });
> >         ]]>
> >     </method>
> >
> > On Wed, Sep 12, 2012 at 8:27 PM, [email protected] <
> > [email protected]> wrote:
> >
> >> If the error dialog is in the lzx files below:
> >>
> >>
> https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/WebContent/src/
> >> => SWF8
> >> if its is below:
> >>
> >>
> https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/WebContent/swf10/
> >> => SWF10
> >>
> >> If it is in SWF8 it might be covered by a video object that is
> >> currently playing at the same time. You might simply move those video
> >> pods to the side.
> >>
> >> Sorry based on your snippets I can't help you debug your code. You
> >> might add some debug output and have a look at the runtime OpenLaszlo
> >> debuggers.
> >>
> >> Sebastian
> >>
> >> 2012/9/12 Baskar Rajendran <[email protected]>:
> >> > Seba
> >> >
> >> > I have this next to the if loop ..the error dialog should have been
> >> > displayed.before but this window explorer gets popped up on UI
> >> >
> >> > new lz.uploadWindowExplorer(canvas.main_content._content.inner,{
> >> >                             x:60,uploadmodule:canvas.uploadmoduleimg,
> >> >                             parentFolderId:this.parentFolderId,
> >> >                             isOwner:isOwner,
> >> >                             isRestricted:isRestricted,
> >> >                             fileExplorerRef:this,
> >> >                             isOnlyImage:true,
> >> >                             servletName:'file.upload'
> >> >                         });
> >> > -baskar
> >> >
> >> >
> >> > On Wed, Sep 12, 2012 at 8:06 PM, [email protected] <
> >> > [email protected]> wrote:
> >> >
> >> >> maybe it is hidden by other items.
> >> >> Is the UI element part of the SWF8 or SWF10 app?
> >> >>
> >> >> Sebastian
> >> >>
> >> >> 2012/9/12 Baskar Rajendran <[email protected]>:
> >> >> > Hi
> >> >> >
> >> >> > I am trying to have a condition like this and if the condition
> passes
> >> i
> >> >> am
> >> >> > trying to show the error dialog .
> >> >> > The debug message inside the if conditions gets printed but the
> error
> >> >> > dialog is not getting shown.
> >> >> >
> >> >> > here's the code
> >> >> >
> >> >> > if(this.isUserAdmin)
> >> >> > {
> >> >> > if ($debug) Debug.write("isUserAdmin",this.isUserAdmin);
> >> >> > new lz.labelerrorPopup(canvas,{errorlabelid:1540});
> >> >> > return;
> >> >> >
> >> >> > }
> >> >> >
> >> >> > -baskar
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Sebastian Wagner
> >> >> https://twitter.com/#!/dead_lock
> >> >> http://www.webbase-design.de
> >> >> http://www.wagner-sebastian.com
> >> >> [email protected]
> >> >>
> >>
> >>
> >>
> >> --
> >> Sebastian Wagner
> >> https://twitter.com/#!/dead_lock
> >> http://www.webbase-design.de
> >> http://www.wagner-sebastian.com
> >> [email protected]
> >>
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> [email protected]
>

Reply via email to